Mail Archives: djgpp/1996/06/26/13:50:39
Juergen Erhard wrote:
> Eric Nicolas wrote:
> > I have some problems with C++ exceptions handling. First if I compile
> > a C++ program (for example test.cc) which use try/throw/catch, the
> > compiler answers that exception handling is disable and that I must
> > use -fhandle-exceptions to enable it. This flag is not documented
> > in the info files for gcc. strange.
> Yep. I tried exceptions with 2.7.0 (on a linux box) when I heard
> it did support exceptions (and you *do* need those for errors
> in constructors...). But when it spit back that message... I gave up.
> Hoping for 2.8... hope it supports more (all?) of the upcoming
> ANSI Std.
I had answers from gnu c++ newsgroup. It seems that both
-fhandle-exceptions and -frtti flags are needed. it is in gnu g++
faq. I have tried, and then many strange symbols weren't defined
at linking stage :-( I'll look to that more precisely tonight.
> > Does anybody have an explanation ???
> As I said... I don#t *use* the stuff. When they put an option into
> a program that is not documented AND SHOULDN'T BE NECESSARY IN THE
> FIRST PLACE... I don#t trust it. Simple. Very little trouble.
Yes, of course, but I really would like to use exceptions handling, as
it is very convenient for a full-C++ program.
-----
Eric Nicolas <nicolas AT dsys DOT ceng DOT cea DOT fr>
- Raw text -