On Tue, June 6, 2006 23:01, Sheets, Jason (Manpower Contract) wrote: > LDFLAGS is set to -lws2_32, I've also tried setting LDFLAGS to "-lpgport > -lwsock32 -lm -lws2_32 -lshfolder"
You shouldn't need to set LDFLAGS at all in the more recent versions. > I"ve used both current and previous versions of MinGW / Msys and > PostgreSQL 8.1.4 and 8.08 without success, the problem is libpqxx "fails > to find "PQexec" I've inspected config.log and found the following: That means a problem while linking to libpq. > configure:21096: gcc -o conftest.exe -g -O2 -lws2_32 conftest.c -lpq > -Lc:/devel/psql/lib -lpq >&5 This looks very much like one known problem in older versions of libpqxx: when linking ws2_32 in *before* libpq, as the older configure script used to do, you can expect the sort of errors you're seeing here. What happens is that the linker scans ws2_32 first, sees lots of functions like select() and htonl() that nobody has asked for (and so forgets about them), and then later scans libpq and finds it needs functions like select() and htonl() that haven't been linked in. So maybe this problem hasn't been fixed quite everywhere. Which libpqxx version was this from? Jeroen _______________________________________________ Libpqxx-general mailing list [email protected] http://gborg.postgresql.org/mailman/listinfo/libpqxx-general
