How can I add /EHa
(Structured Exception Handling) in QtCreator for MS Compiler.
I’ve been used Microsoft Visual C++ Compiler.
This is how to do it. Works both for Qt 4 and Qt 5. This will set EHa instead of default EHsc:
win* {
QMAKE_CXXFLAGS_EXCEPTIONS_ON = /EHa
QMAKE_CXXFLAGS_STL_ON = /EHa
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With