Xref: news2.mv.net comp.os.msdos.djgpp:5430 From: Juergen Erhard Newsgroups: comp.os.msdos.djgpp Subject: Re: Pbs with C++ exceptions Date: Wed, 26 Jun 1996 15:56:56 +0200 Organization: ILK Internet GmbH, Karlsruhe, BRD Lines: 43 Message-ID: <31D141A8.70E17EFA@laden.ilk.de> References: <31C5026F DOT 6180 AT dsys DOT ceng DOT cea DOT fr> NNTP-Posting-Host: laden3.ilk.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Eric NICOLAS DJ-Gateway: from newsgroup comp.os.msdos.djgpp Eric NICOLAS wrote: > > Hi djgpp gurus ! > > Using: djgpp v2, first non-beta release > > 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. > Then If I have two exceptions classes A and B, with B deriving from > A, I should be able to catch exceptions B with a catch(A), no ? (I read > that in the strousup's book). Thass right... the exception system is strangely similar to Common-Lisp's... *SNIIIIIIIIIIIP (that P is rather 'wet')* > 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. > Take a look to the SWORD home page : > france: http://bunny.ensea.fr/Pages_Perso/Cedric_Joulain/sword.web/home.html > us: http://www.iquest.net/~cworley/sword.web/home.html Oh, I will... BTW, how's tricks? Didn't get to check out your DJFC yet... maybe today. Or did you get some more stuff done since you sent it? -- Juergen A. Erhard eMail: jae AT laden DOT ilk DOT de snailMail: Belfortstr. 6; 76133 Karlsruhe; GERMANY phone: (+49) (0)721/27326 (private, hard to reach) (+49) (0)721/6633-115 (business)