Hi,
 
I had no problem compiling libpqxx for Cygwin but I have had no luck compiling a program.  I am using the following command to compile:
 
g++ -g -o test.o test.cc -I /usr/local/include -L /usr/local/lib -lpq -lpqxx
 
I used the default ./confgure and verified that everything is in /usr/local.  The failed compile output is below:
 
[uni]$ g++ -g -o test.o test.cc -I /usr/local/include -L /usr/local/lib -lpq -lpqxx 2>&1 | head -n5
/usr/local/lib/libpqxx.a(connection.o): In function `_ZN4pqxx16connectionpolicy13do_disconnectEP7pg_conn':
/libpqxx-2.6.6/src/connection.cxx:72: undefined reference to `_PQfinish'
/usr/local/lib/libpqxx.a(connection.o): In function `_ZN4pqxx13connect_async18do_completeconnectEP7pg_conn':
...
...
...
more of the same...
 
Any help would be greatly appreciated. I am sure it is something dumb but just in case I figured I would send it out.  Thanks in advance.
 
Benjamin Arai
[EMAIL PROTECTED]
 
BEGIN:VCARD
VERSION:2.1
N:Arai;Benjamin
FN:[EMAIL PROTECTED]
ORG:University of California, Riverside
TITLE:PhD Student
TEL;WORK;VOICE:(951) 827-2838
TEL;HOME;VOICE:(951) 682-6816
TEL;CELL;VOICE:(626) 378-2992
ADR;WORK;ENCODING=QUOTED-PRINTABLE:;;Department of Computer Science and Engineering=0D=0AEngineering BU2, Room =
351=0D=0AUniversity of California;Riverside;CA;92521;United States of Americ=
a
LABEL;WORK;ENCODING=QUOTED-PRINTABLE:Department of Computer Science and Engineering=0D=0AEngineering BU2, Room 35=
1=0D=0AUniversity of California=0D=0ARiverside, CA 92521=0D=0AUnited States =
of America
URL;WORK:http://www.benjaminarai.com
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:20060520T165426Z
END:VCARD
_______________________________________________
Libpqxx-general mailing list
[email protected]
http://gborg.postgresql.org/mailman/listinfo/libpqxx-general

Reply via email to