Skip to content

Latest commit

 

History

History
40 lines (26 loc) · 1.65 KB

gz-enable-stack-frame-run-time-error-checking.md

File metadata and controls

40 lines (26 loc) · 1.65 KB
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: /GZ (Enable Stack Frame Run-Time Error Checking)
/GZ (Enable Stack Frame Run-Time Error Checking)
11/04/2016
/gz
-GZ compiler option [C++]
release-build errors
/GZ compiler option [C++]
GZ compiler option [C++]
debug builds, catch release-build errors
b3efeeff-d5e3-4057-91c9-f6fc73d0270c

/GZ (Enable Stack Frame Run-Time Error Checking)

Performs the same operations as the /RTC (Run-Time Error Checks) option. Deprecated.

Syntax

/GZ

Remarks

/GZ is only for use in a nonoptimized (/Od (Disable (Debug))) build.

/GZ is deprecated since Visual Studio 2005; use /RTC (Run-Time Error Checks) instead. For a list of deprecated compiler options, see Deprecated and Removed Compiler Options in Compiler Options Listed by Category.

To set this compiler option in the Visual Studio development environment

  1. Open the project's Property Pages dialog box. For details, see Set C++ compiler and build properties in Visual Studio.

  2. Select the Configuration Properties > C/C++ > Command Line property page.

  3. Enter the compiler option in the Additional Options box.

To set this compiler option programmatically

  • See xref:Microsoft.VisualStudio.VCProjectEngine.VCCLCompilerTool.AdditionalOptions%2A.

See also

MSVC Compiler Options
MSVC Compiler Command-Line Syntax