Exit Codes from NMAKE


The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at Exit Codes from NMAKE.

NMAKE returns the following exit codes:

0No error (possibly a warning)
1Incomplete build (issued only when /K is used)
2Program error, possibly due to one of the following:
- A syntax error in the makefile
- An error or exit code from a command
- An interruption by the user
4System error — out of memory
255Target is not up-to-date (issued only when /Q is used)

Running NMAKE