
Martin Schulz <Martin.Schulz <at> synopsys.com> writes:
Hello Markus,
you should not link your _application_ against boost test at all.
This is wrong statement. Boost.Test supports *both* link with library and avoid it by using sungle header version of Boost.Test
IMHO, you should compile the test cases in a separate executable that runs all tests one after the other.
The simplest way to avoid any link hassle there is to have a single cpp file containing
#define BOOST_AUTO_TEST_MAIN #include <boost/test/auto_unit_test.hpp> #include <boost/test/included/unit_test_framework.hpp>
If you are using 1.34 the correct lines are #define BOOST_TEST_MAIN #include <boost/test/unit_test.hpp> or #define BOOST_TEST_MODULE master suite name here #include <boost/test/unit_test.hpp> Gennadiy