Boost logo

Boost :

From: Gennadiy Rozental (rogeeff_at_[hidden])
Date: 2008-03-12 11:00:54


Thomas Klimpel <Thomas.Klimpel <at> synopsys.com> writes:

>
> > and with your recent suggestions, but I haven't found another way to
> > remove the linking errors than to globally define
> "BOOST_TEST_INCLUDED"
> > (or link against boost_unit_test_framework-XXX.dll, but I prefered
> using
> > "included" option). Maybe I haven't tried hard enough, but I have also
> > other things to do than try to exactly follow an incomplete
> > documentation.
>
> I have done a search for "BOOST_TEST_INCLUDED" in the boost/test sources
> now, and came to the conclusion, that globally defining
> "BOOST_TEST_NO_LIB" will have a similar effect. I tried this, and it
> works.

BOOST_TEST_NO_LIB is used to prevent auto-linking and in general has nothing
to do with the problem you expirience.
 
> Is this the "officially supported" solution? But how am I supposed to
> know from the sources that globally defining "BOOST_TEST_NO_LIB" is the
> expected way to do it, while defining "BOOST_TEST_INCLUDED" is "fidhy"?

Try reading new docs or post an example that fails to link here and I will
show a right way.

> Or is globally defining "BOOST_TEST_NO_LIB" just as "fidhy" as globally
> defining "BOOST_TEST_INCLUDED"?

I am not why your sarcasm is warranted here. I am just trying to help.

Gennadiy


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk