Boost logo

Boost :

From: Jody Hagins (jody-boost-011304_at_[hidden])
Date: 2007-05-16 10:06:15

On Wed, 16 May 2007 05:57:58 -0700
"Sohail Somani" <s.somani_at_[hidden]> wrote:

> Hi Jody,
> Stick to your guns! Boost Test is one of the better C++ testing
> frameworks out there.

I *really* do like it, and have defended it on this list a number of

> Anyway, what I did (in 1.33.1 - hope it still works in 1.34!) was I
> built a little static library with a cpp file that defined
> BOOST_AUTO_TEST_MAIN (or whatever it is) and #included the right file:
> // file: something.cpp
> #include <boost/test/auto/main.hpp> // or whatever it is
> Then all my tests are linked with this little library and also the
> unit test library. If you are using a semi-sane build system, you
> should be able to attach this little library to the link line for all
> your tests.

That's not a bad idea. However, for 1.34, you will probably have to at
least make the DYN_LINK change.

I really think I'd rather have main be ansent from all the libraries,
rather than in some and absent from others.

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