title | description | ms.date | f1_keywords | helpviewer_keywords | |||||
---|---|---|---|---|---|---|---|---|---|
/NXCOMPAT (Compatible with Data Execution Prevention) |
Describes the Microsoft C/C++ (MSVC) /NXCOMPAT linker option, which marks an executable as compatible with Data Execution Prevention (DEP). |
09/19/2022 |
|
|
Indicates that an executable is 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:
-
Open the Property Pages dialog box for the project. For more information, see Set compiler and build properties.
-
Choose the Configuration Properties > Linker > Advanced property page.
-
Modify the Data Execution Prevention (DEP) property. Choose OK or Apply to apply the change.
- See xref:Microsoft.VisualStudio.VCProjectEngine.VCLinkerTool.AdditionalOptions%2A.