Boost logo

Boost Users :

From: Gennadiy Rozental (rogeeff_at_[hidden])
Date: 2008-06-13 15:23:15


Florian Winter <fw <at> motama.com> writes:

>
> Hi,
>
> We have run into problems trying to compile Boost.Test on a Mac OS X 10.3
system using GCC version 3.3
> (details below). We are using the "included" implementation of Boost.Test in a
shared library that we
> build using our own build system. This works fine on various different
platforms and compilers, however
> part of Boost.Test fails to compile on Mac OS X. We are including Boost.Test
in our shared library in the
> following way:
>
> // Define this to declare all Boost.Test symbols as __declspec(dllexport)
> // rather than __declspec(dllimport).
> #define BOOST_TEST_SOURCE
>
> #define BOOST_TEST_DYN_LINK
> #include <boost/test/included/unit_test.hpp>

Though this particular setup was never tested (I recommend linking to shared
library instead) and quite possibly will fail since library is not intended ot
be used this way, I believe the particular error you see now is fixed in svn
recently.

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