C++ Programming Guide

Building Shared Libraries With Exceptions

When shared libraries are opened with dlopen, you must use RTLD_GLOBAL for exceptions to work.


Note -

When building shared libraries with exceptions in them, do not pass the option -Bsymbolic to ld. Exceptions that should be caught might be missed.