This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
RE: Can't catch throw
- From: "Tan-Long Phan" <longp at cae dot com>
- To: <gcc-help at gcc dot gnu dot org>
- Date: Mon, 10 Apr 2006 12:04:24 -0400
- Subject: RE: Can't catch throw
Hi
The problem I am having is that I build a shared library and then link
an executable against it. However if a method in the shared library
throws an exception, the executable linked against it does not catch it,
despite it's use of try/catch blocks for the specified exception class.
The executable ends up abort()ing, as if there was no try/catch at all.
I try to link my executable with "g++ -shared" then my executable
crashes with Segmentation fault
I'm using Linux Enterprise and gcc3.4.3
Regards
Long