public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Yanchun Zhao <yzhao123@yahoo.com>
To: gcc-help@gcc.gnu.org
Subject: Exceptions not caught
Date: Sat, 01 Apr 2000 00:00:00 -0000	[thread overview]
Message-ID: <20000108134133.28014.qmail@web502.mail.yahoo.com> (raw)
Message-ID: <20000401000000.ZxCHN1tLTM3HmZEwigJD31ketBYkoNpqQqktXTkGPrQ@z> (raw)

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

             reply	other threads:[~2000-04-01  0:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-01-08  5:41 Yanchun Zhao [this message]
2000-04-01  0:00 ` Yanchun Zhao

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20000108134133.28014.qmail@web502.mail.yahoo.com \
    --to=yzhao123@yahoo.com \
    --cc=gcc-help@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).