Errors from compiling examples for libpq++ - Mailing list pgsql-interfaces

From wenjin.zheng
Subject Errors from compiling examples for libpq++
Date
Msg-id E3E65B3C4E12D311BE6900A0C9EC2FA1FC19@GENOMICS1
Whole thread Raw
List pgsql-interfaces
Hi, 

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

postgres@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 referencedsymbol                             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


pgsql-interfaces by date:

Previous
From: Matthew Hagerty
Date:
Subject: Records deleting themselves...
Next
From: Edmund Mergl
Date:
Subject: Announcement: DBD-Pg-0.93