Re: [boost] Problem linking Boost Unit Test Libraryonwindows(1.33.0)

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
participants (1)
-
Duft Markus