Boost logo

Boost-Build :

From: Juergen Hunold (hunold_at_[hidden])
Date: 2006-11-22 09:28:43


Hi Dean !

On Wednesday 22 November 2006 15:05, Dean Michael Berris wrote:
> Hi Juergen!

> > For shared linking, please add #define BOOST_TEST_MAIN just
> > _before_ you include the first Boost.Test header. This should
> > create the needed main() or you.
>
> I already have `#define BOOST_AUTO_TEST_MAIN ` just before including
> the Boost.Test header -- this I think is a remnant of Boost 1.33.1's
> requirements. Is this a deprecation of the BOOST_AUTO_TEST_MAIN
> macro, or is this a bug in Boost.Test or Boost.Build?

That depends :-))
Well, the documentation is not up-to-date, so I think the best way is to
consider BOOST_AUTO_TEST_MAIN as deprecated.

At least
> // Setup Boost Auto-Testing
> #define BOOST_TEST_MAIN
> #include <boost/test/unit_test.hpp>

works just fine for me. ;-))

The question _how_ to handle the platform specific issues (Win32 mostly)
is going on right now. The best solution is to link statically when not
using BOOST_AUTO_TEST at the moment.

Yours,

Jürgen

-- 
* Dipl.-Math. Jürgen Hunold  ! Ingenieurgesellschaft für 
* voice: ++49 511 262926 57  ! Verkehrs- und Eisenbahnwesen mbH  
* fax  : ++49 511 262926 99  ! Lister Straße 15
* juergen.hunold_at_[hidden]   ! www.ivembh.de

Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk