|
Boost Users : |
Subject: Re: [Boost-users] Boost.Test - problems overriding main
From: Gennadiy Rozental (rogeeff_at_[hidden])
Date: 2015-09-02 14:48:40
<ramonpadilla1 <at> yahoo.co.uk> writes:
>
>
>
> 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/incl½Õ¹¥Ñ}ÑÍй¡ÁÀø()M¥¹±¡
ÈÙÉÍ¥½¸Ý¥±°Ý½É¬¥¹¸((ø(øÉͽ±ÙÌÑ¡¥ÌÁɽ±´ÕÐ$´½¹ÕÍ
½ÕÐÑ¡¥µÁ±¥
Ñ¥½¹Ì¸()e½ÕȽ¹±ä¥µÁ±¥
Ñ¥½¸¥ÌÑ¡
Ðå½ÔÝ¥±°¡
ÙѼÍÁ¹¥Ðµ½ÉÑ¥µ½¸)½µÁ¥±
Ñ¥½¸¡µ
å¹±¥¥±°¥å½Ô¡
Ù¹½Õ Á½ÝȤ
¹å½Ô¡
ÙѼ)ÍÑ¥¬Ý¥Ñ Í¥¹±¥±ÑÍе½Õ±Ì¸(
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