Boost logo

Boost Users :

Subject: Re: [Boost-users] unit tests: auto tests, missing main, redef'ed init_unit_test_suite
From: Hicham Mouline (hicham_at_[hidden])
Date: 2009-06-04 10:28:03


> -----Original Message-----
> AMDG
>
> Hicham Mouline wrote:
> > The .cpp files are compiled with -DBOOST_TEST_MAIN=
> >
> >
> >
> > AFAIU, I am then not required to provide the "init_unit_test_suite"
> function nor
> > the "main" function.
> >
>
> Only use BOOST_TEST_MAIN in one translation unit.
>
> In Christ,
> Steven Watanabe

Thanks.
As I said in my email that crossed yours:-), I did but
init_unit_test_suite(...) was still multiply defined,
g++ <otherflags> -DBOOST_TEST_MAIN= -o <translationunit1.o> -c
<translationunit1.cpp>
g++ <otherflags> -o <translationunit2.o> -c <translationunit2.cpp>
...
g++ <otherflags> -lboost_unit_test_framework-gcc34-mt-d-1_37 -o test *.o

also, the main function is not found.

Regards,


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