I'm using: libpqxx 2.6.3, postgresql 8.1, MinGW and Msys.
When I try to compile with "./configure --disable-shared --enable-static
--disable-thread-safety" I receive the errors in config.log:
...
configure:2494: g++ -c -g -O2 conftest.cc >&5
conftest.cc: In function `int main()':
conftest.cc:15: error: `exit' undeclared (first use this function)
conftest.cc:15: error: (Each undeclared identifier is reported only once
for each function it appears in.)
configure:2500: $? = 1
configure: failed program was:
| /* confdefs.h. */
....
..........
configure:20556: checking for correct C++ linkage of basic libpq functions
configure:20635: g++ -o conftest.exe -g -O2 -lpq conftest.cc -lpq
-lpq >&5
C:\msys\1.0\mingw\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\mingw32\bin\ld.exe:
cannot find -lpq
collect2: ld returned 1 exit status
configure:20641: $? = 1
configure: failed program was:
|
| #include <c:/Arquiv~1/Postgr~1/8.1/include/libpq-fe.h>
| int main(){return !PQexec(0,0);}
configure:20667: error:
Linking a call to libpq failed in C++, even though it succeeded in C.
If your
C and C++ compilers are very different beasts, this may mean that we do
not have
the right options for linking with it after all.
Read the config.log file for more detailed information. Look for the
last error
message, which may be several pages up from the end of the file.
.........
Any help.
Thanks.
Allysson
_______________________________________________________
Yahoo! Acesso Grátis - Internet rápida e grátis. Instale o discador agora!
http://br.acesso.yahoo.com
_______________________________________________
Libpqxx-general mailing list
[email protected]
http://gborg.postgresql.org/mailman/listinfo/libpqxx-general