Boost logo

Boost :

From: Gennadiy Rozental (rogeeff_at_[hidden])
Date: 2008-03-11 15:36:31


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


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk