Opened 13 years ago
Closed 12 years ago
#3697 closed Bugs (fixed)
Lack of g++ symbol visibility support in boost::system
Reported by: | Owned by: | Beman Dawes | |
---|---|---|---|
Milestone: | Boost 1.42.0 | Component: | system |
Version: | Boost 1.41.0 | Severity: | Problem |
Keywords: | Cc: | juergen.hunold@… |
Description
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
Change History (2)
comment:1 by , 13 years ago
Cc: | added |
---|
comment:2 by , 12 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
This is essentially #2114 and #2309