yes this machine is perfectly able to compile hello world.
In fact that's a built machine here, many developers are working and compiling on it everyday.
we use gcc 3.4.2
On 7/11/06, Bart Samwel <[EMAIL PROTECTED]> wrote:
Hi Andro,
I think Jeroen is on a plane to Bangkok right now, so I'll try to help you.
Andro wrote:
> 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.
Hmmm, very strange. Are you able to compile and link a regular "hello
world" program with g++? I.e.,
g++ -c -g -O2 -o helloworld.o helloworld.cxx
g++ -g -O2 -o helloworld helloworld.o
With helloworld.cxx containing:
#include <iostream>
int main()
{
std::cout << "Hello, world!" << std::endl;
}
> 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.
This is a problem with libpqxx. 2.6.7 should work though.
Cheers,
Bart
_______________________________________________ Libpqxx-general mailing list [email protected] http://gborg.postgresql.org/mailman/listinfo/libpqxx-general
