Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-interfaces by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group