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:
  1. try {
  2. throw std::logic_exception("error");
  3. } catch (const std::logic_exception& ex) {
  4. std::cout << ex.what();
  5. }
  6. catch (...) {
  7. std::cout << "bad";
  8. }
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