64bit and PIC

Ni!

I had the problem below when compiling graph-tool on a 64 bit amd machine.
It's seems a problem generating position independent code while
linking the libraries.

The linker asks me to compile with -fPIC, but doing that changes
nothing (by adding "-fPIC" to CXXFLAGS in the Makefile, should I have
done someting different?)

One thing I notice is that the last call, to "g++ -shared", does not
include -fPIC.
All others do, so this might be expected (as in "it's just linking")

I remember someone on the list successfully compiled on a 64 bit
machine, did you have to do something special?

[]s
ale

I had the problem below when compiling graph-tool on a 64 bit amd machine.
It's seems a problem generating position independent code while
linking the libraries.

[...]

/usr/bin/ld: .libs/graph.o: relocation R_X86_64_PC32 against
`std::basic_string<char,
std::char_traits<char>, std::allocator<char> >::~basic_string()@@GLIBCXX_3.4'
can not be used when making a shared object; recompile with -fPIC

Well, this certainly has nothing to do with graph-tool... I noticed you
were using GCC 4.1.2, which is not yet released, and is probably a
pre-release or something. Do you get the same error when you compile
with a stable GCC (eg. 4.1.1)?

Ni!