Errors from compiling examples for libpq++

From: "wenjin(dot)zheng" <wenjin(dot)zheng(at)biosourcetechnologies(dot)com>
To: "'pgsql-interfaces(at)postgresql(dot)org'" <pgsql-interfaces(at)postgresql(dot)org>
Subject: Errors from compiling examples for libpq++
Date: 1999-09-29 20:04:23
Message-ID: E3E65B3C4E12D311BE6900A0C9EC2FA1FC19@GENOMICS1
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

Hi,

I have tried to compile examples in libpq++. I got the following errors:

postgres(at)vaca1>make all -f Makefile
g++ -Wno-error -Wno-unused -Wl,-Bdynamic
-I/U07/postgres/usr/src/pgsql/postgresql-6.5/include -o testlibpq0
testlibpq0.cc -L/U07/postgres/usr/src/pgsql/postgresql-6.5/lib -lpq++
Undefined first referenced
symbol in file
socket
/U07/postgres/usr/src/pgsql/postgresql-6.5/lib/libpq++.so
recv
/U07/postgres/usr/src/pgsql/postgresql-6.5/lib/libpq++.so
getprotobyname
/U07/postgres/usr/src/pgsql/postgresql-6.5/lib/libpq++.so
gethostbyname
/U07/postgres/usr/src/pgsql/postgresql-6.5/lib/libpq++.so
send
/U07/postgres/usr/src/pgsql/postgresql-6.5/lib/libpq++.so
setsockopt
/U07/postgres/usr/src/pgsql/postgresql-6.5/lib/libpq++.so
getsockname
/U07/postgres/usr/src/pgsql/postgresql-6.5/lib/libpq++.so
connect
/U07/postgres/usr/src/pgsql/postgresql-6.5/lib/libpq++.so
ld: fatal: Symbol referencing errors. No output written to testlibpq0
collect2: ld returned 1 exit status
make: *** [testlibpq0] Error 1

Could anyone help me and let me know whether there is something wrong with
the initial setup and how can I avoid the errors? I am using g++ (gcc
2.8.1) on Sun solaries 2.6.

Thank you for help.

Jim

Browse pgsql-interfaces by date

  From Date Subject
Next Message Edmund Mergl 1999-09-29 21:32:05 Announcement: DBD-Pg-0.93
Previous Message Ken J. Wright 1999-09-29 19:53:43 Re: [INTERFACES] psql trerminal behaviour