This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Exceptions not caught
- To: gcc-help at gcc dot gnu dot org
- Subject: Exceptions not caught
- From: Yanchun Zhao <yzhao123 at yahoo dot com>
- Date: Sat, 8 Jan 2000 05:41:33 -0800 (PST)
Hi,
We have a project originally on NT and we want to port
it to Linux. The project is written in C++ and uses
many exception handles. We compiled it on Redhat 6.1
using g++. We found that at run time our program
aborted because many execption are not caught. We use
try and catch block and use gdb to debug. We found if
we throw an exception in the try block, it was not
caught in catch block and only caught by the C runtime
library and abort our program.
We tried to compile it with -fexceptions flag, it
still did the same thing.
Does anyone know what's wrong here? Do we need some
more compiling flags or are there any work around?
Thanks for help.
Yanchun Zhao
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com