Boost logo

Boost :

From: Duft Markus (Markus.Duft_at_[hidden])
Date: 2008-03-06 02:50:03


Hello Thomas!

Thomas Klimpel <> wrote:
> Hello Markus,
>
[[...]]
>
> For me "boost::unit_test::test_suite* init_unit_test_suite( int argc,
> char* argv[] )" instead of "int main( int argc, char* argv[] )" works
> on
> all platforms, but I'm using boost 1.34.1, so I can't tell whether
> this
> is also true for boost 1.33.0. I have a globally defined
> "BOOST_TEST_INCLUDED" (in the same way that "NDEBUG" is globally
> defined) instead of the local "#define BOOST_AUTO_TEST_MAIN", but this
> may also be related to boost 1.34.1.

This seems to do the trick, thanks very much :)

>
>> Also i cannot find BOOST_AUTO_TEST_MAIN anywhere in the source,
>> and boost/test/unit_test.hpp is included instead of
>> auto_unit_test.hpp. unit_test_framework.hpp is also not included...
>
> strange, for boost 1.33.0, it is used in
> "boost/test/auto_unit_test.hpp" (line 211), while for boost 1.34.1,
> it is used in "boost/test/detail/config.hpp" (line 98).

Argh, i wasn't precise enough, i meant our own sources, not the boost
ones... :)

Cheers, Markus

>
> I think I can remember that both the globally defined
> "BOOST_TEST_INCLUDED" and the locally defined "#define
> BOOST_AUTO_TEST_MAIN" are "lazy" solutions that are not recommended.
> Still, they are simply convenient and probably the simplest way to
> make boost/test work.
>
> Regards,
> Thomas
>
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost


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