Boost logo

Boost Users :

Subject: Re: [Boost-users] boost.log linker issue
From: Igor R (boost.lists_at_[hidden])
Date: 2013-04-22 15:09:33


> I have previously successfully compiled and built the dynamic boost.log
> libraries with MSVC-8.0, along with a few test programs that were linking to
> the boost libs dynamically. The test program was built and ran fine. I
> have now built boost.log static libraries with MSVC-10.0 without issue, yet
> my test program is now failing to build when attempting to link statically.
> See attachment for specific errors.
>
>
>
> It seems as though the project is including the headers with the <dllimport>
> tag, though my MSVC-10.0 project does not have BOOST_ALL_DYN_LINK or
> BOOST_LOG_DYN_LINK macro defined. Is there some way I need to signal my
> project that I’m using boost.log statically?

Boost.Log was built with "runtime-link=shared" option, while (I guess)
your project links CRT statically. Change /MT (or /MTd) option in your
project to /MD (/MDd), or build boost with "runtime-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