‑‑force_exceptions
In this section:
Syntax
Description
Use this option to make the linker include exception tables and exception code even when the linker heuristics indicate that exceptions are not used.
The linker considers exceptions to be used if there is a throw expression that is not a rethrow in the included code. If there is no such throw expression in the rest of the code, the linker arranges for operatornew, dynamic_cast, and typeid to call abort instead of throwing an exception on failure. If you need to catch exceptions from these constructs but your code contains no other throws, you might need to use this option.
See also
Caution
Project>Options>Linker>Advanced>Allow C++ exceptions>Always include