Boost logo

Boost :

Subject: Re: [boost] auto-link with gcc/windows
From: John Maddock (boost.regex_at_[hidden])
Date: 2010-07-06 04:48:38


> BOOST_HAS_DECLTYPE is to do with the C++0x decltype feature
> (http://en.wikipedia.org/wiki/Decltype)
>
> BOOST_HAS_DECLSPEC is to do with symbol exporting and is likely to be the
> only relevant thing to your issue.

Yup. Nothing to do with auto-linking either since gcc doesn't support that,
it's purely a symbol visibility issue, and gcc is quite a bit stricter about
what works than msvc.

One thing you could try is building the library and tests on Linux
with -fvisiblity-hidden - you will very likely get lots of unresolved
externals - then it's a case of adding the symbol visibility macros to those
and/or preprocessing the offending source to see why things aren't working
as expected.

HTH, John.


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