I'm trying to get libpqxx at compiling. I've been trying several releases.
Here's what I get with 2.6.7 and 2.6.6 :
g++ -g -O2 -o rmlo rmlo.o -L/data/pgsql/lib ../src/.libs/libpqxx.a /remote/tools/Linux/2.6/gcc- 3.4.2/bin/../lib/gcc/x86_64-unknown-linux-gnu/3.4.2/../../..//libstdc++.so -L/tmp/gcc-3.4.2/x86_64-unknown-linux-gnu/32/libstdc++-v3/src -L/tmp/gcc-3.4.2/x86_64-unknown-linux-gnu/32/libstdc++-v3/src/.libs -L/tmp/gcc-3.4.2 /gcc/32 -L/tmp/gcc-3.4.2/gcc -L/usr/local/lib/gcc/x86_64-unknown-linux-gnu/../../../lib -L/usr/local/lib/gcc/x86_64-unknown-linux-gnu/../.. -L/lib/../lib -L/usr/lib/../lib -lgcc_s_32 -lpq -Wl,--rpath -Wl,/remote/tools/Linux/2.6/gcc- 3.4.2/bin/../lib/gcc/x86_64-unknown-linux-gnu/3.4.2/../../../ -Wl,--rpath -Wl,/remote/tools/Linux/2.6/gcc-3.4.2/bin/../lib/gcc/x86_64-unknown-linux-gnu/3.4.2/../../../
/remote/tools/Linux/2.6/gcc-3.4.2/bin/../lib/gcc/x86_64-unknown-linux-gnu/3.4.2/../../..//libstdc++.so: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[1]: *** [rmlo] Error 1
make[1]: Leaving directory `/data/pgsql/libpqxx-2.6.7/tools'
make: *** [all-recursive] Error 1
I know this error is not directly related to libpqxx but if someone has a clue on how to solve it, I'd be glad to know.
with 2.6.5:
g++ -DHAVE_CONFIG_H -I../include -I../include -I/data/pgsql/include -g -O2 -MT connection_base.lo -MD -MP -MF .deps/connection_base.Tpo -c connection_base.cxx -o connection_base.o
connection_base.cxx: In member function `pqxx::result pqxx::connection_base::prepared_exec(const std::string&, const char* const*, int)':
connection_base.cxx:824: error: `pname' undeclared (first use this function)
connection_base.cxx:824: error: (Each undeclared identifier is reported only once for each function it appears in.)
connection_base.cxx:828: error: `a' undeclared (first use this function)
make[1]: *** [connection_base.lo] Error 1
make[1]: Leaving directory `/data/pgsql/libpqxx-2.6.5/src'
make: *** [all-recursive] Error 1
I guess pname is coming from libpq.
If anyone thinks about something, please let me know
Thanks
Charles
_______________________________________________ Libpqxx-general mailing list Libpqxx-general@gborg.postgresql.org http://gborg.postgresql.org/mailman/listinfo/libpqxx-general