PDA

View Full Version : Exceptions / setjmp/longjmp question



Aceman2000
8th March 2008, 21:07
Hi,

I have two questions, but need only 1 answer :)

Question A: Is it possible (and if yes, how) to use exceptions in a Qt4 app AND do not have the mingwm10.dll dependency (My app is compiled as statically as possible)
Question B: Do setjmp and longjmp mess Qt up? (I've come up with a way to destruct objects when I longjmp out of a function, so this is not a problem)

wysota
8th March 2008, 21:55
Question A: Is it possible (and if yes, how) to use exceptions in a Qt4 app AND do not have the mingwm10.dll dependency (My app is compiled as statically as possible)
Yes.


Question B: Do setjmp and longjmp mess Qt up? (I've come up with a way to destruct objects when I longjmp out of a function, so this is not a problem)

Why would they? Qt is just another set of C++ libraries, nothing more, nothing less. Everything that applies to C++ applies to Qt as well.

Aceman2000
13th March 2008, 16:49
Thank you. By the way, could you answer the 'how' part of question A?

wysota
13th March 2008, 17:14
Just use them.