> -----Original Message-----
> From: Bart Samwel [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 07, 2006 4:12 PM
> To: Sheets, Jason (Manpower Contract)
> Cc: Jeroen T. Vermeulen; [email protected]
> Subject: Re: [libpqxx-general] libpqxx fails to compile under MinGW /
Msys
> 
> 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?
> 

Hi Bart, thanks for the tip, I tried adding wsock32 in every order I
could contemplate and still failed to find select.

Jason

> Cheers,
> Bart
_______________________________________________
Libpqxx-general mailing list
[email protected]
http://gborg.postgresql.org/mailman/listinfo/libpqxx-general

Reply via email to