Re: [Boost-users] x86_64 needs -fPIC issue, anyone successful? (Bill Freeman)

Hi Bill,
/usr/bin/ld: /home/f/Desktop/rets/lib/libboost_system.a(error_code.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC Or if someone knows that the -fPIC won't help, or has alternate suggestions, please let me know.
-fPIC is usually used when building a shared object, so it should not be relevant as you are linking statically to the library. However, I had the same problem as you lately and it had not _anything_ to do with fPIC whatsoever. It was because i was compiling with gcc 3.4.5 and the flag -fvisibility=hidden and -fvisibility-inlines-hidden. Those 2 flags are correctly implemented from gcc 4.1 onwards i think. Maybe this helped, --Florent Arnold & Richter Cine Technik GmbH & Co. Betriebs KG Sitz: Munchen - Registergericht: Amtsgericht Munchen - Handelsregisternummer: HRA 57918 Personlich haftender Gesellschafter: Arnold & Richter Cine Technik GmbH Sitz: Munchen - Registergericht: Amtsgericht Munchen - Handelsregisternummer: HRB 54477 Geschaftsfuhrer: Franz Kraus; Dr. Martin Prillmann A new star is born - ALEXA the most versatile digital camera system. Get all the latest information from arridigital.com and YouTube.
participants (1)
-
Vial, Florent