On Wed, June 14, 2006 13:06, Benjamin Arai wrote: > 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
Those last two link options should be the other way around: "-lpqxx -lpq", otherwise the linker won't find out that it needs functions from libpq until after it's already processed that library and forgotten what functions it offered. Jeroen _______________________________________________ Libpqxx-general mailing list [email protected] http://gborg.postgresql.org/mailman/listinfo/libpqxx-general
