Boost logo

Boost Users :

Subject: Re: [Boost-users] x86_64 needs -fPIC issue, anyone successful? (Bill Freeman)
From: Vial, Florent (fvial_at_[hidden])
Date: 2010-08-06 05:33:06


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.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net