|
Boost Users : |
Subject: Re: [Boost-users] [test] manual test suite initialization: linking problems
From: Gennadiy Rozental (rogeeff_at_[hidden])
Date: 2009-07-16 13:37:01
Matthias Vallentin <vallentin <at> icsi.berkeley.edu> writes:
>
> 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
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net