Boost logo

Boost Users :

Subject: Re: [Boost-users] relocation R_X86_64_32 against
From: Jason Roehm (jasonr_at_[hidden])
Date: 2014-03-03 18:57:05


> On Mar 3, 2014, at 5:37 PM, Koteswara Rao Ruvva <ruvva_at_[hidden]> wrote:
>
> Thanks Matthieu.
>
> As I mentioned I used the -fPIC option while building the static boost libraries as shown below:
>
> ./bjam debug link=static cxxflags="-fPIC -std=c++0x" stage
>
> But didn't help. Still getting the same error message.

You need to use the -fPIC option when building your code also. Any object files that are to be placed into a static library for the x86_64 architecture must be compiled using position-independent code.

Jason



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