Ni! On 11/16/06, Tiago de Paula Peixoto <tiago@forked.de> wrote:
On 11/16/2006 06:01 PM, Alexandre Hannud Abdo wrote:
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)?
Removing, as you suggested, -fvisibility=hidden -fvisibility-inlines-hidden from CXXFLAGS works around the compiler bug. tx! ale