PDA

View Full Version : gcc exceptions



ctarsoaga
12th April 2010, 20:58
Hi everybody,

My problem is somehow strange. I use qt sdk 2010.01 with mingw which includes gcc 4.4.0

I use some code like this


try
{
//call function that throws std::logic_exception("error");
}
catch (const std::logic_exception & ex)
{
//handle exception here
}

Piece a cake? Sure! It's just that gcc terminates the app, exception is never handled.
I tried a
catch(...), doesn''t work either

How is this supposed to work in gcc?????? Is there some special compiler flag to enable this??


Thanks a million
Chris