Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This section is a reference to the errors and warnings generated by the NMAKE build tool. NMAKE errors and warnings have the form Uxxxx, where xxxx is a four-digit number.
Important
The Visual Studio compilers and build tools can report many kinds of errors and warnings. After an error or warning is found, the build tools may make assumptions about code intent and attempt to continue, so that more issues can be reported at the same time. If the tools make the wrong assumption, later errors or warnings may not apply to your project. When you correct issues in your project, always start with the first error or warning that's reported, and rebuild often. One fix may resolve multiple subsequent errors.
To get help on a particular diagnostic message in Visual Studio, select it in the Output window and press the F1 key. Visual Studio opens the documentation page for that error, if one exists. You can also use the search tool at the top of the page to find articles about specific errors or warnings. Or, browse the list of errors and warnings by tool and type in the table of contents on this page.
Note
Not every Visual Studio error or warning is documented. In many cases, the diagnostic message provides all of the information that's available. If you landed on this page and think the error or warning message needs additional explanation, let us know by using the feedback buttons on this page. If you think the error or warning is wrong, or you've found another problem with the toolset, report a product issue on the Developer Community site. You can also send feedback and enter bugs within the IDE. In Visual Studio, go to the menu bar and choose Help > Send Feedback > Report a Problem, or submit a suggestion by using Help > Send Feedback > Suggest a Feature. Some compiler error topics were created that are not emitted by the compiler and now redirect to this page instead.
You may find additional assistance for errors and warnings in Microsoft Q&A C++ forums. Or, search for the error or warning number on the Visual Studio C++ Developer Community site. You can also search Stack Overflow to find solutions.
For links to additional help and community resources, see Visual C++ Help and Community.
NMAKE fatal errors
| Error | Message |
|---|---|
| NMAKE fatal error U1000 | syntax error : ')' missing in macro invocation |
| NMAKE fatal error U1001 | syntax error : illegal character 'character' in macro |
| NMAKE fatal error U1007 | double quotation mark not allowed in name |
| NMAKE fatal error U1023 | syntax error in expression |
| NMAKE fatal error U1033 | syntax error : 'string' unexpected |
| NMAKE fatal error U1034 | syntax error : separator missing |
| NMAKE fatal error U1035 | syntax error : expected ':' or '=' separator |
| NMAKE fatal error U1036 | syntax error : too many names to left of '=' |
| NMAKE fatal error U1045 | spawn failed : message |
| NMAKE fatal error U1050 | message |
| NMAKE fatal error U1051 | out of memory |
| NMAKE fatal error U1052 | file 'filename' not found |
| NMAKE fatal error U1055 | out of environment space |
| NMAKE fatal error U1056 | cannot find command processor |
| NMAKE fatal error U1059 | syntax error : '}' missing in dependent |
| NMAKE fatal error U1064 | MAKEFILE not found and no target specified |
| NMAKE fatal error U1065 | invalid option 'option' |
| NMAKE fatal error U1070 | cycle in macro definition 'macroname' |
| NMAKE fatal error U1071 | cycle in dependency tree for target 'targetname' |
| NMAKE fatal error U1073 | don't know how to make 'targetname' |
| NMAKE fatal error U1076 | name too long |
| NMAKE fatal error U1077 | 'program' : return code 'value' |
| NMAKE fatal error U1078 | constant overflow at 'expression' |
| NMAKE fatal error U1083 | target macro 'target' expands to nothing |
| NMAKE fatal error U1086 | inference rule cannot have dependents |
| NMAKE fatal error U1087 | cannot have : and :: dependents for same target |
| NMAKE fatal error U1088 | invalid separator '::' on inference rule |
| NMAKE fatal error U1095 | expanded command line 'commandline' too long |
| NMAKE fatal error U1097 | filename-parts syntax requires dependent |
| NMAKE fatal error U1099 | stack overflow |
| NMAKE fatal error U1100 | macro 'macro-name' is illegal in the context of batch rule 'rule-name' |
NMAKE warnings
| Warning | Message |
|---|---|
| NMAKE warning U4001 | command file can be invoked only from command line |
| NMAKE warning U4004 | too many rules for target 'targetname' |
| NMAKE warning U4006 | special macro undefined : 'macroname' |
| NMAKE warning U4007 | filename 'filename' too long; truncating to 8.3 |
| NMAKE warning U4010 | 'target' : build failed; /K specified, continuing ... |
| NMAKE warning U4011 | 'target' : not all dependents available; target not built |
See also
C/C++ Compiler and build tools errors and warnings
NMAKE reference