Requirements for throwning C++ exceptions from one shared library to another in gcc 4.1.0?

Ian Lance Taylor iant@google.com
Fri Jan 12 01:59:00 GMT 2007


John Love-Jensen <eljay@adobe.com> writes:

> > By C barrier here, do you mean code compiled as C (i.e. with gcc instead
> > of g++) or would that include an extern "C" function in C++ code (just
> > checking).  
> 
> Compiled with gcc instead of g++, yes.

For what it's worth, you can use the -fexceptions option to permit
throwing exceptions across C code.

Ian



More information about the Gcc-help mailing list