Subject: Re: C++ exceptions
To: None <prlw1@cam.ac.uk>
From: Oleg Polyanski <luke@eed.miee.ru>
List: current-users
Date: 09/27/1999 13:13:08
>>>>> "PW" == Patrick Welche writes:
Default exceptions handling framework in G++ is broken so use the
alternative one - add `-fsjlj-exceptions' to compiler flags. See PR
`port-i386/8465' for details.
PW> Are exceptions working for you? (or is there something wrong with the
PW> following?)
PW> #include <stdexcept>
PW> int main() { try { throw runtime_error("Wibble!"); } catch(const
PW> runtime_error& e) { cerr<<"Caught: "<<e.what()<<'\n'; exit(1); }
PW> cout<<"Hello\n"; return 0; } % c++ trial.cc -o trial -Wall % trial
PW> Abort trap (core dumped)