|
Boost : |
Subject: Re: [boost] [config] GCC symbol visibility across shared libraries
From: Beman Dawes (bdawes_at_[hidden])
Date: 2010-05-20 17:11:48
On Thu, May 20, 2010 at 3:05 PM, Stewart, Robert <Robert.Stewart_at_[hidden]> wrote:
> Beman Dawes wrote:
>>
>> Here is the code I'm experimenting with for Boost.System:
>>
>> // define BOOST_SYSTEM_DECL and BOOST_SYSTEM_VISIBLE
>> #if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_SYSTEM_DYN_LINK)
>> # if defined(BOOST_SYSTEM_SOURCE)
>> # define BOOST_SYSTEM_DECL BOOST_SYMBOL_EXPORT
>> # else
>> # define BOOST_SYSTEM_DECL BOOST_SYMBOL_IMPORT
>> # endif
>> # define BOOST_SYSTEM_VISIBLE BOOST_SYMBOL_VISIBLE
>> #else
>> # define BOOST_SYSTEM_DECL
>> # define BOOST_SYSTEM_VISIBLE
>> #endif
>
> Why create your own BOOST_SYSTEM_VISIBLE? Why not just use BOOST_SYMBOL_VISIBLE for all libraries?
Good catch! With BOOST_SYMBOL_VISIBLE always defined,
BOOST_SYSTEM_VISIBLE serves no purpose.
Thanks,
--Beman
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk