Subject: Re: g++ exceptions
To: None <>
From: Oleg Polyanski <>
List: tech-userlevel
Date: 04/02/2000 17:27:00
>>>>> "e" == erh  writes:

        add  `-fsjlj-exceptions' to compiler  flags.  this is well known (and
        still not fixed) bug.

 e> 	I just tried a c++ program that uses exceptions.
 e> It didn't work.  "Abort (core dumped)" as soon as an.
 e> exception is thrown.  I saw someone mention something
 e> about exception not working, but I can't find it.  Can
 e> anyone fill me in on what might be broken, and what needs
 e> to happen to fix it?

 e> eric

 e> #include <iostream.h>
 e> main () {

 e>    try {
 e>         throw 123;
 e>    } catch (int &e) {
 e>         cout << e << "\n";
 e>    } catch (...) {
 e>         cout << "??\n";
 e>    }
 e> }