-fsjlj-exceptions Compiler switch

Joshua Pollak joshp@cra.com
Wed Jan 2 08:56:00 GMT 2002


Hello,

I have found that using the -fsjlj-exceptions switch in GCC 2.95 fixes the 
exception issues I mentioned previously. (Not being able to pass exceptions 
through a library and back to the calling application).

I understand that GCC3 does not use the set-jump/long-jump exception 
system, and uses a more efficent method that should work just as well. Does 
anyone have any idea why one exception system might work while the other 
doesn't?

Basically, if I don't include -fsjlj-exceptions and compile with either 
2.95 or 3.0.2, whenever I throw an exception, the application stops and I 
get the error message, 'Aborted.' If I compile with -fsjlj-exceptions (in 
2.95 only) the application works.

-Josh

-- 
Joshua Pollak       (617) 491-3474 x586
Software Engineer         joshp@cra.com
Charles River Analytics     www.cra.com
---------------------------------------



More information about the Gcc-help mailing list