Sheets, Jason (Manpower Contract) wrote: > Without LDFLAGS there is no -lws2_32, the gcc command is: > > gcc -o conftest.exe -g -O2 conftest.c -lpq -Lc:/devel/psql/lib -lpq > > I was able to get the libpq tests to compile and link successfully by > going in and adding -lws2_32 after -lpq in the appropiate places however > I then ran into a problem with configure not being able to figure out > how to compile a simple sockets based program. > > The new error is: > > g++ -o conftest.exe -g -O2 -Lc:/devel/psql/lib conftest.cpp -lpq > -lws2_32 >&5 > ccg1baaa.o(.text+0x19): In function `main': > conftest.cpp:44: undefined reference to `select' > > This appears to be Ticket #46 at > http://thaiopensource.org/development/libpqxx/ticket/46
As I remember it, the problem here was that "select" is not in ws2_32 but in the wsock32 library, could you try adding that in the appropriate places as well? Cheers, Bart _______________________________________________ Libpqxx-general mailing list [email protected] http://gborg.postgresql.org/mailman/listinfo/libpqxx-general
