www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/05/19/20:21:11

Mime-Version: 1.0
To: erikyyy AT studbox DOT uni-stuttgart DOT de, djgpp AT delorie DOT com
From: Nate Eldredge <nate AT cartsys DOT com>
Subject: Re: Exceptions
Date: Tue, 19 May 1998 17:16:08 -0700
Message-ID: <19980520001555.AAC2064@ppp100.cartsys.com>

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 <iostream>
>#include <memory>
>
>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



- Raw text -


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