[Boost-bugs] [Boost C++ Libraries] #3697: Lack of g++ symbol visibility support in boost::system

Subject: [Boost-bugs] [Boost C++ Libraries] #3697: Lack of g++ symbol visibility support in boost::system
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-11-30 07:35:48


#3697: Lack of g++ symbol visibility support in boost::system
------------------------------+---------------------------------------------
 Reporter: rbock@… | Owner: bemandawes
     Type: Bugs | Status: new
Milestone: Boost 1.42.0 | Component: system
  Version: Boost 1.41.0 | Severity: Problem
 Keywords: |
------------------------------+---------------------------------------------
 Similar to #2309 (class symbols) and #3347 (method sybols):

 If you compile a library which throws boost::system::system_error with

 g++ -fvisibility=hidden

 the exception cannot be caught as system_error (but as runtime_error).

 Using


 {{{
 #pragma GCC visibility push(default)
 #include <boost/system/system_error.hpp>
 #pragma GCC visibility pop

 }}}

 in the library code helps, but it requires a lot of attention.

 It would be really, really cool if all boost libraries would add
 visibility to the public classes, see also

 http://gcc.gnu.org/wiki/Visibility

 Thank you for your time!

 Regards,

 Roland

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3697>
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:01 UTC