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".