Skip to content
Advertisement

troubles linking boost statically to shared objet on linux

I am using Boost 1.57.0

I compiled it with the following command

JavaScript

When I compile shared library to where I want to link boost statically I got the following error

JavaScript

What I am doing wrong? I am on x86_64-linux-gnu.

Advertisement

Answer

We use this script to build boost statically and do build shared libs from it afterwards:

JavaScript

The compiler flags we set are:

JavaScript

That seems to work.

Advertisement