Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" To: erikyyy AT studbox DOT uni-stuttgart DOT de, djgpp AT delorie DOT com From: Nate Eldredge Subject: Re: Exceptions Date: Tue, 19 May 1998 17:16:08 -0700 Message-ID: <19980520001555.AAC2064@ppp100.cartsys.com> Precedence: bulk At 05:24 5/19/1998 +0200, erikyyy AT studbox DOT uni-stuttgart DOT de wrote: > >Although djgpp compiles the following source without warnings, it >still doesn't work: > >#include >#include > >class rrrr {}; > >int main() >{ > try { > throw rrrr(); > } > catch (rrrr) { > cerr << "excpt\n"; > }; > cerr << "normal\n"; > return 0; >}; > >on linux, this program writes "excpt\nnormal\n" on stderr. >on djgpp it doesn't. (it just does "Abort!") > If this is 2.8.0, you can compile with the switch `-fsjlj-exceptions' (and no, I didn't just bang on the keyboard to produce that). Or you can upgrade to 2.8.1, where exceptions apparently work without problems. If you are using less than 2.8.x, upgrade. Nate Eldredge nate AT cartsys DOT com