Boost logo

Boost :

From: Beman Dawes (bdawes_at_[hidden])
Date: 2002-09-03 07:38:41

At 06:27 AM 9/3/2002, Toon Knapen wrote:

>I suppose the old regression tests do not work anymore ?
>I get some failiures due to main not being defined (because in the test
>program it's 'test_main') and some other symbols from the
>ld: 0711-317 ERROR: Undefined symbol:
>ld: 0711-317 ERROR: Undefined symbol: .main
>I'm switching to the new regression tests but at the same time I wanted
>do a quick comparison of my upgraded compiler using the old framework.


AFAIK, You have three choices. The code in the programs to be tested now

   #include <boost/test/test_tools.hpp>

1) You can change that to use a V1 drop-in replacement:

   #include <boost/detail/lightweight_test.hpp>

2) You can instead add an #include to suck in all the V2 heavyweight code:

   #include <boost/test/included/test_exec_monitor.hpp>

3) You can hack <boost/test/test_tools.hpp> to do (1) when

To me, only (3) makes any sense for existing code like the Boost tests, and
similar cases where a really lightweight header only solution is
useful. Hopefully Gennadiy is finally convinced that (3) best meets the
requirements for some users, and will make (3) a regular part of


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