-----Original Message-----
From: Jeroen T. Vermeulen [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 07, 2006 11:18 AM
To: Sheets, Jason (Manpower Contract)
Cc: [email protected]
Subject: RE: [libpqxx-general] libpqxx fails to compile under MinGW /
Msys

On Wed, June 7, 2006 21:41, Sheets, Jason (Manpower Contract) wrote:

> This was latest released version (2.6.6).  I've still been
unsuccessful
> with or without LDFLAGS being set, I can send a config.log or any
other
> information you'd like to have.

So did you try tracking down that gcc command line (the other ones
should
generally be using g++, not gcc) and moving the -lws2_32 option behind
the
-lpq option?
[JS] 
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


> I also found the configure / build process seems to be broken on NLD9
> Linux  with newer versions of glibc where crypt is a separate library,
> setting LDFLAGS to include -lcrypt allowed it to compile.

Shouldn't be too hard to check for...  What function does it need from
that library exactly?

[JS] 
Looks like it is looking for crypt, there error was: "In function
`pg_fe_sendauth':: undefined reference to `crypt"



Jeroen


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

Reply via email to