Subject: Re: [Boost-bugs] [Boost C++ Libraries] #7559: gcc-compatible symbol visibility not supported for clang
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-10-25 12:26:38
#7559: gcc-compatible symbol visibility not supported for clang
-----------------------------------------------------+----------------------
Reporter: James Walker <jamesw@â¦> | Owner: johnmaddock
Type: Bugs | Status: new
Milestone: To Be Determined | Component: config
Version: Boost Development Trunk | Severity: Problem
Resolution: | Keywords:
-----------------------------------------------------+----------------------
Comment (by mgaunard):
on the Windows platform clang uses the code path in platform/win32.hpp.
clang supports both `__attribute__` and `__declspec`.
What I'd recommend is to put in compiler/clang.hpp the following
{{{
#if defined(_WIN32) || defined(__WIN32__) || defined(WIN32))
#define BOOST_SYMBOL_EXPORT __attribute__((__visibility__("default")))
#define BOOST_SYMBOL_IMPORT
#define BOOST_SYMBOL_VISIBLE __attribute__((__visibility__("default")))
#endif
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/7559#comment:6> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:11 UTC