Can Boost Log be created as .dll / .so in a static Boost assembly?

Is it possible to create Boost Log as a dynamic library (.dll / .so), but do it in a static Boost assembly? I would like all other Boost libraries to be static and only Boost Log as .dll (because some DLL files use it in one application).

Do all Boost libraries need to be dynamic in order to get the Boost Log.dll file? I tried adding define = BOOST_LOG_DYN_LINK to my bjam command line, to no avail:

bjam --toolset=msvc-10.0 address-model=64 variant=release,debug link=static threading=multi runtime-link=static define=BOOST_LOG_DYN_LINK
+3
source share
1 answer

You can narrow the assembly area by specifying only the library you want to build with a switch --with-<library>, for example.,

./bjam link=shared --with-log ...

+2

All Articles