BOOST_TEST_DYN_LINK must be defined if you are *building* Boost::Test as a shared object, and the client programs must also include this option when they use the header files, to link to it correctly.