Boost logo

Boost Users :

Subject: Re: [Boost-users] relocation R_X86_64_32 against
From: Matthieu Brucher (matthieu.brucher_at_[hidden])
Date: 2014-03-03 16:21:28


If you want to compile something that will be in a shared library, you
need to recompile Boost libraries with -fPIC. When switching to static
libraries, this flag is not added.
Static libraries don't need to be linked against Boost BTW.

Cheers,

Matthieu

2014-03-03 20:35 GMT+00:00 Koteswara Rao Ruvva <ruvva_at_[hidden]>:
> Hello All,
>
> I'm a newbie to this mailing list. I am trying to build static boost
> libraries and link to my libraries. I used ./bjam debug link=static
> cxxflags="-std=c++0x" stage to build the boost libraries. When I build my
> libraries (shared or static) with linking to boost libraries, I get the
> following error:
> libboost_regex.a(instances.o): relocation R_X86_64_32 against `.bss' can not
> be used when making a shared object; recompile with -fPIC
> libboost_regex.a: could not read symbols: Bad value
> Then I tried adding -fPIC while building my boost libraries. Didn't help.
> Any suggestions.
>
> Thank you
> Kotesh
>
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users

-- 
Information System Engineer, Ph.D.
Blog: http://matt.eifelle.com
LinkedIn: http://www.linkedin.com/in/matthieubrucher
Music band: http://liliejay.com/

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