Linker Options


Visual C++ Linker Options
/NXCOMPAT (Compatible with Data Execution Prevention)

Indicates that an executable was tested to be compatible with the Windows Data Execution Prevention feature.

/NXCOMPAT[:NO]
Remarks

/NXCOMPAT is on by default if a component requires Windows Vista (/SUBSYSTEM 6.0 and greater). See /SUBSYSTEM (Specify Subsystem) for more information.

/NXCOMPAT:NO can be used to explicitly specify an executable as not compatible with Data Execution Prevention.

For more information on Data Execution Prevention, see:

To set this linker option in the Visual Studio development environment

  1. Open the project's Property Pages dialog box. For details, see Setting Visual C++ Project Properties.

  2. Click the Linker folder.

  3. Click the Command Line property page.

  4. Type the option into the Additional Options box.

To set this linker option programmatically

See Also

Reference

Tags :


Community Content

Audun Nordal
Enabled by default on 64 bit

Quoting David LeBlanc from his blog, this is always enabled on x64: http://blogs.msdn.com/david_leblanc/archive/2008/03/17/visual-c-defenses-and-64-bit.aspx

Tags :

Page view tracker