How can I switch off exception handling in MSVC?

Posted by Tamara on Stack Overflow See other posts from Stack Overflow or by Tamara
Published on 2009-02-16T09:13:04Z Indexed on 2010/05/09 20:38 UTC
Read the original article Hit count: 193

Does anybody know how to switch off exception handling option in MSVC? I tried to set the option 'Enable C++ exceptions' to 'NO' and I got warning: warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc

I would like to switch off the exception handler, too, but I don't know how.

In my application I basically need more speer than stability, therefore I chose switching off the exception handling. I do not have any try/catch blocks, but I do use STL. When I switch the option 'Enable C++ exceptions' to 'NO' is there any way how to get rid of those warnings?

© Stack Overflow or respective owner

Related posts about visual-c++

Related posts about exception-handling