>
>
>
> I want to provide my own main function while using Boost.Test.
Please take a look at new docs for detailed explanation on this subject
with examples.
> So I have included the following macros:
>
> #define BOOST_TEST_ALTERNATIVE_INIT_API
> #define BOOST_TEST_NO_MAIN
>
> but this gives me the following error when build on OS X using Xcode 6:
>
> Undefined symbols for architecture x86_64:
> "boost::unit_test::unit_test_main(bool (*)(), int, char**)",
referenced from:
> _main in main.o
This is because your library was built without
BOOST_TEST_ALTERNATIVE_INIT_API.
>
> I found out that including the following file:
>
> #include <boost/test/included/unit_test.hpp>
Single header version will work indeed.
>
> resolves this problem but I'm confused about the implications.
Your only implication is that you will have to spend a bit more time on
compilation (maybe negligible, if you have enough power) and you have to
stick with single file test modules.
_______________________________________________
Boost-users mailing list
Boost...@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users