www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/05/19/17:56:10

From: erikyyy AT studbox DOT uni-stuttgart DOT de
Message-ID: <19980519172419.A816@vulcain.yyydom>
Date: Tue, 19 May 1998 17:24:19 +0200
To: djgpp AT delorie DOT com
Subject: Exceptions
Mime-Version: 1.0

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!")

what have i done wrong ?

byebye
Erik

--
EMAIL: erikyyy AT studbox DOT uni-stuttgart DOT de                  \\\\
       thieleek AT tick DOT informatik DOT uni-stuttgart DOT de         o `QQ'_
IRC:   erikyyy                                            /   __8
WWW:   http://wwwcip.rus.uni-stuttgart.de/~inf24628/      '  `
       http://tick.informatik.uni-stuttgart.de/~thieleek/

- Raw text -


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