Boost logo

Boost Users :

Subject: Re: [Boost-users] undefined reference to `boost::log::v2_mt_posix::...
From: Gavin Lambert (boost_at_[hidden])
Date: 2018-10-01 00:20:33


On 29/09/2018 01:03, Antonis Polykratis wrote:
> I face this error and I cannot figure out a fix.
> I use bjam to build the application code, and inside site-config file, I
> have also the following a section where I define BOOST_ALL_DYN_LINK:
> '''
> using gcc : :
>         :
> where I have defined
> <define> BOOST_ALL_DYN_LINK
[...]
> When I build the application code, I have plenty
> of  `boost::log::v2_mt_posix::...` error messages.
>
> Could you give me some guide why this problem exist?

Firstly, BOOST_ALL_DYN_LINK is something that you define when including
Boost in your application. It has no effect on the compilation of Boost
itself.

Secondly, it's an auto-linking property, and auto-linking is only
implemented on Windows MSVC. It's harmless to define it when building a
Linux or other GCC application, but it will have no effect. With
gcc/clang, you must explicitly add -l parameters for each Boost
non-header-only library (and dependency thereof) which you are using.


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