/NXCOMPAT (Compatible with Data Execution Prevention)

 

For the latest documentation on Visual Studio 2017, see Visual Studio 2017 Documentation.

For the latest documentation on Visual Studio 2017, see -NXCOMPAT (Compatible with Data Execution Prevention) on docs.microsoft.com. Indicates that an executable was tested to be compatible with the Windows Data Execution Prevention feature.

/NXCOMPAT[:NO]  

By default, /NXCOMPAT is on.

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

For more information about Data Execution Prevention, see these articles:

To set this linker option in Visual Studio

  1. Open the project Property Pages dialog box. For details, see Working with Project Properties.

  2. Click the Linker folder.

  3. Click the Command Line property page.

  4. Type the option in the Additional Options box.

To set this linker option programmatically

  1. See AdditionalOptions.

Setting Linker Options
Linker Options

Show: