Exit Codes from NMAKE

By default, NMAKE halts if any command returns a nonzero exit code. The /I option causes NMAKE to ignore exit codes. Warnings from the /K option are suppressed by the /C option; the /I option overrides the /K option if both are specified. The following table lists the exit codes.

Code Meaning
0 No error (possibly a warning)
1 Incomplete build (issued only when the /K option is used)
2 Program 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
4 System error – out of memory
255 Target is not up-to-date (issued only when the /Q option is used)