/GX (Enable Exception Handling)
For the latest documentation on Visual Studio 2017 RC, see Visual Studio 2017 RC Documentation.
Deprecated. Enables synchronous exception handling using the assumption that functions declared by using
extern "C" never throw an exception.
By default, /EHsc, the equivalent of /GX, is in effect when you compile by using the Visual Studio development environment. When using the command line tools, no exception handling is specified. This is the equivalent of /GX-.
For more information, see C++ Exception Handling.
Open the project's Property Pages dialog box. For details, see How to: Open Project Property Pages.
In the navigation pane, choose Configuration Properties, C/C++, Command Line.
Type the compiler option in the Additional Options box.
- See AdditionalOptions.