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 generated by the resource compiler. Resource compiler errors and warnings have the form RCxxxx or RWxxxx, 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.
Resource compiler fatal errors
Resource compiler errors
| Error | Message |
|---|---|
| Resource compiler error RC2001 | newline in constant |
| Resource compiler error RC2007 | #define syntax |
| Resource compiler error RC2015 | too many chars in constant |
| Resource compiler error RC2017 | illegal escape sequence |
| Resource compiler error RC2101 | Invalid directive in preprocessed RC file |
| Resource compiler error RC2103 | unexpected end of file in string literal |
| Resource compiler error RC2104 | undefined keyword or key name: key |
| Resource compiler error RC2107 | expected numeric command value |
| Resource compiler error RC2109 | expected numerical dialog constant |
| Resource compiler error RC2111 | invalid control type |
| Resource compiler error RC2112 | BEGIN expected in dialog |
| Resource compiler error RC2113 | END expected in dialog |
| Resource compiler error RC2114 | expected control class name |
| Resource compiler error RC2116 | expecting number for ID |
| Resource compiler error RC2122 | unknown menu subtype |
| Resource compiler error RC2124 | empty menus not allowed |
| Resource compiler error RC2127 | version WORDs separated by commas expected |
| Resource compiler error RC2135 | file not found: filename |
| Resource compiler error RC2144 | PRIMARY LANGUAGE ID not a number |
| Resource compiler error RC2147 | SUBLANGUAGE ID not a number |
| Resource compiler error RC2148 | SUBLANGUAGE ID too large |
| Resource compiler error RC2151 | cannot re-use string constants |
| Resource compiler error RC2152 | invalid control character |
| Resource compiler error RC2162 | expected macro formal parameter |
| Resource compiler error RC2163 | accelerator type required [ASCII or VIRTKEY] |
| Resource compiler error RC2164 | unexpected value in RCDATA |
| Resource compiler error RC2165 | string not found in DLGINCLUDE statement |
| Resource compiler error RC2167 | unrecognized VERSIONINFO field; BEGIN or comma expected |
| Resource compiler error RC2169 | resource file filename is not in 2.03 format |
| Resource compiler error RC2170 | bitmap file filename is not in 3.00 format |
| Resource compiler error RC2171 | unknown DIB header format |
| Resource compiler error RC2175 | resource file filename is not in 3.00 format |
| Resource compiler error RW2001 | Invalid directive in preprocessed RC file |
| Resource compiler error RW2002 | Parsing error |
| Resource compiler error RW2003 | Generation Error |
Resource compiler warnings
| Warning | Message |
|---|---|
| Resource compiler warning RC4002 | too many actual parameters for macro 'identifier' |
| Resource compiler warning RC4005 | 'identifier' : macro redefinition |
| Resource compiler warning RC4093 | unescaped newline in character constant in inactive code |
| Resource compiler warning RC4214 | Codepage not valid : ignored |
| Resource compiler warning RW4001 | .EXE processing options (/L /M /P /T /K /E /31 or /30) |
| Resource compiler warning RW4003 | SHIFT or CONTROL used without VIRTKEY |
| Resource compiler warning RW4004 | ASCII character not equivalent to virtual key code |
See also
C/C++ Compiler and build tools errors and warnings
Resource compiler