‑‑no_exceptions
In this section:
Syntax
Description
Use this option to disable exception support in the C++ language. Exception statements like throw and try–catch, and exception specifications on function definitions will generate an error message. Exception specifications on function declarations are ignored. The option is only valid when used together with the ‑‑c++ compiler option.
If exceptions are not used in your application, it is recommended to disable support for them by using this option, because exceptions cause a rather large increase in code size.
See also
Exception handling and __EXCEPTIONS.
Caution
Project>Options>C/C++ Compiler>Language 1>C++
and deselect
Project>Options>C/C++ Compiler>Language 1>C++ options>Enable exceptions