Subject: Re: C++ exceptions
To: None <>
From: Oleg Polyanski <>
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++ -o trial -Wall % trial
 PW> Abort trap (core dumped)