Matthias Vallentin
I found an old thread [1] from 2007where it is advised to use the following combination if one wants to use dynamic linking and manual registration:
If you insist on combination of manual registration with shared library, it should look like this:
int main( int argc, char* argv[] ) { return ::boost::unit_test::unit_test_main( &init_unit_test, argc, argv ); }
Is this still the way to do it?
Yes.
I tried to apply the technique as follows:
#define BOOST_TEST_DYN_LINK #define BOOST_TEST_ALTERNATIVE_INIT_API
Second macro should not be necessary. BOOST_TEST_DYN_LINK already causes BOOST_TEST_ALTERNATIVE_INIT_API to be defined.
That, however, gives me the following run-time error:
Running Test setup error: signal: SIGABRT ( application abort requested)
Can you see where it's aborting? Gennadiy