This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Throwing exceptions from a .so linked with -static-lib* ?


On Thu, 2017-01-12 at 21:49 +0000, Yuri Gribov wrote:
> Note that documentation for -static-libgcc explicitly mentions that
>            There are several situations in which an application should
> use the shared libgcc instead of the static version.  The most
>            common of these is when the application wishes to throw and
> catch exceptions across different shared libraries.  In that case,
>            each of the libraries as well as the application itself
> should use the shared libgcc.
> Removing -static-libgcc fixes problem with your reprocase.

I could have sworn I tried all different combinations of the different
static flags, but sure enough if I don't add -static-libgcc on either
the .so or the executable things work OK.

Thanks!


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]