www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/06/26/13:50:39

Xref: news2.mv.net comp.os.msdos.djgpp:5416
From: Eric NICOLAS <nicolas AT dsys DOT ceng DOT cea DOT fr>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Pbs with C++ exceptions
Date: Wed, 26 Jun 1996 17:06:05 +0200
Organization: Commissariat a l'energie atomique
Lines: 28
Message-ID: <31D151DC.5783@dsys.ceng.cea.fr>
References: <31C5026F DOT 6180 AT dsys DOT ceng DOT cea DOT fr> <31D141A8 DOT 70E17EFA AT laden DOT ilk DOT de>
NNTP-Posting-Host: hudson.ceng.cea.fr
Mime-Version: 1.0
CC: jae AT laden DOT ilk DOT de
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019