$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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½ÕȽ¹±ä¥µÁ±¥
Ñ¥½¸¥ÌÑ¡
Ðå½ÔÝ¥±°¡
ÙѼÍÁ¹¥Ðµ½ÉÑ¥µ½¸)½µÁ¥±
Ñ¥½¸¡µ
å¹±¥¥±°¥å½Ô¡
Ù¹½Õ Á½ÝȤ
¹å½Ô¡
ÙѼ)ÍÑ¥¬Ý¥Ñ Í¥¹±¥±ÑÍе½Õ±Ì¸(