
Hello everyone,
after prying for any hints in the documentation and reading frustrating
mails in the archives for a while now, I get the feeling that this is a
very confusing topic.
My aim is to use a static library of boost.test because I need to
compile it a lot and the waiting time when using the header is just
frustrating.
So I added to the "Jamfile.v2" in "libs/test/build" under "requirements"
the following line:
<define>BOOST_TEST_ALTERNATIVE_INIT_API=1
Then I used boost.build and apart from a few warnings like:
./boost/test/detail/config.hpp:85:1: warning:
"BOOST_TEST_ALTERNATIVE_INIT_API" redefined
<command-line>: warning: this is the location of the previous definition
everything seemed alright. So I'm assuming I now have a static library
with this macro defined so it should use the alternative initialiser.
Then I tried the following code, which I mostly copied from the
documentation, except for adding two macros:
#define BOOST_TEST_NO_LIB
#define BOOST_TEST_ALTERNATIVE_INIT_API
#define BOOST_TEST_MODULE example
#include