Boost logo

Boost :

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

Martin Schulz <Martin.Schulz <at>> 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
> #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

#include <boost/test/unit_test.hpp>

#define BOOST_TEST_MODULE master suite name here
#include <boost/test/unit_test.hpp>


Boost list run by bdawes at, gregod at, cpdaniel at, john at