/Gx Compiler Option (C++)

Syntax: Default:
/Gx[+|-] /Gx-

Use /Gx to remove C++ exception-handling information.

If your application does not use C++ exception handling, build with /Gx+ to prevent generation of unnecessary code.

By default, C++ exception-handling information is not removed.

Note: This option is valid for C++ files only. The C language does not include specific constructs for exception handling.



C++ Exception Handling Overview


Summary of Compiler Options
Language-Dependent Options