Boost logo

Boost Users :

Subject: Re: [Boost-users] Linker error with boost_1_36_0
From: Adam Merz (adammerz_at_[hidden])
Date: 2008-10-10 12:01:13


DDBeatty writes:
> Adding the following define to your preprocessor definitions should take
> care of the problem:
>
> BOOST_ALL_DYN_LINK
>
> This should probably be mentioned in the getting started documentation. I
> spent nearly a day on this recently.
>

It's worth mentioning that the reason this is necessary is because by default
only shared libraries are built, but by default static libraries are autolinked.
So an alternative to the above preprocessor definition (and the better option in
most cases, IMO) is to build static boost libs (either invoke bjam with
--build-type=complete or with link=static).


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