Subject: [Boost-bugs] [Boost C++ Libraries] #13052: iostreams visibility=hidden for non-Windows platforms
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2017-06-01 12:07:49
#13052: iostreams visibility=hidden for non-Windows platforms
------------------------------------+-----------------------
Reporter: Mark M <mememory359@â¦> | Owner: turkanis
Type: Bugs | Status: new
Milestone: To Be Determined | Component: iostreams
Version: Boost 1.64.0 | Severity: Problem
Keywords: |
------------------------------------+-----------------------
For the Mac, I am compiling the Boost libraries and my code using
visibility=hidden. My code cannot find
"boost::iostreams::zlib::default_compression". This is defined in
iostreams/filter/zlib.hpp as
Code:
''BOOST_IOSTREAMS_DECL extern const int default_compression;''
The only place that BOOST_IOSTREAMS_DECL is defined is
iostreams/detail/config/dyn_link.hpp.
That file sets the macro to either Windows-specific settings
(''declspec(dllexport)''), or leaves it blank.
So the Boost iostreams library will have the wrong visibility settings.
This is unlike other places in the Boost code, where the right visibility
settings are obtained by defining the library DECL macro as
BOOST_SYMBOL_EXPORT. (Take a look at filesystem/config.hpp as an example
of how it is done for most of the other libraries.)
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/13052> 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-06-01 12:11:12 UTC