HI, I need to link in Boost into my shared library application.
This works fine for 32bit, but is not working for 64bit. It appears that Boost
is not getting built properly with –fPIC on 64bit and leads to following
errors:
/usr/bin/ld: vpi2.o: relocation R_X86_64_32 can not be used when
making a shared object; recompile with –fPIC
‘vpi2.o’ has the boost .a files included within it using ‘ld –r’
Can someone help identify if this is a boost problem or gcc
problem?
I am using Boost 1.34.1, gcc 3.2.3 on RHEL4. Please let me know if
any other detail is needed.
Any help is highly appreciated.
thanks
Puneet