Hi everybody,
I try to get a simple try catch using (qt with) mingw including gcc 4.4.0 and it does not work
Qt Code:
try { throw std::logic_exception("error"); } catch (const std::logic_exception& ex) { std::cout << ex.what(); } catch (...) { std::cout << "bad"; }To copy to clipboard, switch view to plain text mode
NO EXCEPTION IS CAUGHT!!! NEVER! Not even in the catch-all...
program terminates ("terminate called after throwing instance of....")
How do I catch these in gcc 4.4.0?? Is there a compiler flag or what???
Thanks a million
Chris
Bookmarks