delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/05/20/10:49:33

From: "Martin Ambuhl" <mambuhl AT tiac DOT net>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Exceptions
Date: Wed, 20 May 1998 02:16:43 -0400
Organization: Who wants to know?
Lines: 46
Message-ID: <6jts78$so2@news-central.tiac.net>
References: <19980519172419 DOT A816 AT vulcain DOT yyydom>
NNTP-Posting-Host: p14.tc4.newyo.ny.tiac.com
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

erikyyy AT studbox DOT uni-stuttgart DOT de wrote in message
<19980519172419 DOT A816 AT vulcain DOT yyydom>...
:
: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!")
==========
djgpp based on  gcc 2.8.1 prints "excpt\nnormal\n".
Perhaps you need to upgrade.
==========
:
: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