Boost logo

Boost Users :

From: Robert Ramey (ramey_at_[hidden])
Date: 2008-06-13 19:50:36


Thomas Voigt wrote:
> Robert Ramey schrieb:
>> well, we wouldn't put it in there if there was an easy way around it.
>>
>> You could comment out all the _export keywords in the code. But
>> its doubtful that serialization of pointers could be made to work.
>
> Well, since nobody can help we'll have to figure it out for ourselves.

Way to go !!!

> For starters we disabled the
>
> #if defined(BOOST_HAS_DECLSPEC) && !defined(__COMO__)
> # if defined(__BORLANDC__)
> # define BOOST_DLLEXPORT __export
> # else
> # define BOOST_DLLEXPORT __declspec(dllexport)
> # endif
> #elif ! defined(_WIN32) && ! defined(_WIN64)
> # if defined(__MWERKS__)
> # define BOOST_DLLEXPORT __declspec(dllexport)
> # elif defined(__GNUC__) && (__GNUC__ >= 3)
> # define BOOST_USED __attribute__ ((used))
> # elif defined(__INTEL_COMPILER) && (BOOST_INTEL_CXX_VERSION >= 800)
> # define BOOST_USED __attribute__ ((used))
> # endif
> #endif
>
> block in serialization/force_include.hpp, which fixes our problem. The
> first few lines seem to be wrong, a __declspec(dllexport) should never
> be visible unless a DLL is generated.

Which it when this is included in the library build.

Robert Ramey

>
> Regards, tv


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