
Hello, I have been using boost.test with reasonable success, then all of a sudden I have a link error. Obviously I have changed something aobut my project settings. Perhaps someone could help me identify what I have done. I am using boost 1.41.0 on msvc 9.0. The linker is looking for LINK : fatal error LNK1104: cannot open file 'boost_unit_test_framework-vc90-mt-gd-1_41.lib' This lib is not built by running bjam. I have tried all manner of bjam arguments even: bjam --build-type=complete but I only get boost*.dll and libboost*.lib libraries built. I have tried adding #define BOOST_TEST_DYN_LINK and removing it! All this has no effect on my link error, or the file to which the linker is linking. Thanks for any guidance. Si

I have been using boost.test with reasonable success, then all of a sudden I have a link error. Obviously I have changed something aobut my project settings. Perhaps someone could help me identify what I have done.
I am using boost 1.41.0 on msvc 9.0. The linker is looking for
LINK : fatal error LNK1104: cannot open file 'boost_unit_test_framework-vc90-mt-gd-1_41.lib'
That's the import lib for the debug-mutithreaded dll build.
This lib is not built by running bjam. I have tried all manner of bjam arguments even:
bjam --build-type=complete
but I only get boost*.dll and libboost*.lib libraries built. I have tried adding
Are there no import lib's corresponding to the dll's? There should be one for each dll but with a .lib suffix. BTW, after a quick look at the Boost.Test source, it appears you must have either BOOST_ALL_DYN_LINK or BOOST_TEST_DYN_LINK defined somewhere for that lib to be searched for. HTH, John.
participants (2)
-
John Maddock
-
Simon Pickles