NMAKE Fatal Error U1051


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

out of memory

NMAKE ran out of memory, including virtual memory, because the makefile was too large or complex.

To fix by using the following possible solutions

  1. Free some space on disk.

  2. Increase the size of the Windows NT paging file or the Windows swap file.

  3. If only part of the makefile is being used, either divide the makefile into separate files or use !IF preprocessing directives to limit the amount that NMAKE must process. The !IF directives include !IF, !IFDEF, !IFNDEF, !ELSE IF, !ELSE IFDEF, and !ELSE IFNDEF.