The following topics cover Resource Compiler Errors RC1000 through RC1208:
Resource Compiler Fatal Error RC1000
UNKNOWN FATAL ERROR
Note the circumstances of the error, try to isolate the problem, and create a reproducible test
case, then report this information to technical support.
Resource Compiler Fatal Error RC1002
out of heap space
The Resource Compiler ran out of storage for items that it stores in its heap. One of the
following may be a solution:
Resource Compiler Fatal Error RC1003
error count exceeds number; stopping compilation
The number of errors was too great to continue compilation. Fix some errors and recompile.
Resource Compiler Fatal Error RC1004
unexpected end of file found
This error can be caused by omitting the linefeed and carriage return characters on the last line
of a text file.
Resource Compiler Fatal Error RC1005
file not found: filename
The file specified in the RC command line was not found. Check to see whether the file has been
moved to another directory and whether the filename or path is typed correctly.
Files are searched for using the INCLUDE environment variable or the Directories setting.
Resource Compiler Fatal Error RC1007
unrecognized option 'option' in 'filename'
The specified option is not valid.
Resource Compiler Fatal Error RC1008
no input file specified
One or more source files must be specified on the Resource Compiler command line.
Resource Compiler Fatal Error RC1009
compiler limit : macros too deeply nested 'macro'
The Resource Compiler limit for macro nesting was exceeded. Revise the specified source file to
decrease the nesting depth of its macros.
Resource Compiler Fatal Error RC1010
no output file specified
The Resource Compiler command line did not specify a filename for the compiled resource file.
Resource Compiler Fatal Error RC1011
compiler limit : 'identifier' : macro definition too big
The macro definition was longer than allowed.
Try to split the definition into shorter definitions.
Resource Compiler Fatal Error RC1012
unmatched parenthesis : missing 'character'
The parentheses in a preprocessor directive were not matched. The missing character is either a
left or right parenthesis.
Resource Compiler Fatal Error RC1013
mismatched parentheses
Make sure that every open parenthesis has a matching closing parenthesis.
Resource Compiler Fatal Error RC1014
too many include files : depth = 'level'
The nesting depth of #include directives was too great. Open files can be included by the use of
nested directives. The source file containing the directive is counted as one of the files.
Resource Compiler Fatal Error RC1015
cannot open include file 'filename'
The given include file either did not exist, could not be opened, or was not found.
Make sure that the environment settings are valid and that the correct path for the file is
specified. Ensure that sufficient file handles are available to the Resource Compiler. If the
file is on a network drive, make sure that you have permissions to open the file.
Resource Compiler Fatal Error RC1016
#if[n]def expected an identifier
The #ifdef or #ifndef conditional compilation directive was not supplied with an identifier to
evaluate. An identifier must be specified with the #ifdef and #ifndef directives.
Resource Compiler Fatal Error RC1017
invalid integer constant expression
The expression in an #if directive either did not exist or did not evaluate to a constant.
Resource Compiler Fatal Error RC1018
unexpected '#elif'
The #elif directive did not appear within an #if, #ifdef, or #ifndef construct.
Make sure that there is an #if, #ifdef, or #ifndef statement in effect before this statement.
Resource Compiler Fatal Error RC1019
unexpected '#else'
The #else directive did not appear within an #if, #ifdef, or #ifndef construct.
Make sure that there is an #if, #ifdef, or #ifndef statement in effect before this statement.
Resource Compiler Fatal Error RC1020
unexpected '#endif'
An #endif directive appeared without a matching #if, #ifdef, or #ifndef directive.
Make sure that there is a matching #endif for each #if, #ifdef, and #ifndef statement.
Resource Compiler Fatal Error RC1021
invalid preprocessor command 'string'
The characters following the number sign (#) did not form a valid preprocessor directive.
The number sign cannot be used as the first character in an identifier.
Resource Compiler Fatal Error RC1022
expected '#endif'
An #if, #ifdef, or #ifndef directive was not terminated with an #endif directive.
Make sure that there is an #if, #ifdef, or #ifndef statement in effect before this statement.
Resource Compiler Fatal Error RC1023
cannot open source file 'filename'
The specified file either did not exist, could not be opened, or was not found.
Make sure that the environment settings are valid and that the correct path for the file
is specified. If this error appears without an error message, the Resource Compiler has run out
of file handles.
Resource Compiler Fatal Error RC1047
"too many option options, 'string'"
The given option was specified too many times. The given string is the argument to the option that
caused the error.
Resource Compiler Fatal Error RC1048
unknown option 'character' in 'option'
The given character was not a valid letter for the option.
Resource Compiler Fatal Error RC1049
invalid numerical argument 'string'
The Resource Compiler expected a numerical argument but received the given string.
This error may be caused by giving a hexadecimal number without the necessary \x prefix or by a
misformed floating-point number.
Resource Compiler Fatal Error RC1052
compiler limit : #if or #ifdef blocks nested too deeply
The program exceeded the maximum allowable nesting levels for #if and #ifdef directives.
This error can be caused by include files that use these preprocessor directives.
Resource Compiler Fatal Error RC1067
compiler limit : identifier overflowed internal buffer
An internal compiler limit was exceeded.
Resource Compiler Fatal Error RC1101
no resource binary filename specified
The Rename Output (/fo) option was specified, but was not followed by filename.
The following syntax must be used with the /fo option:
RC /fooutfilename infilename.rc
Resource Compiler Fatal Error RC1102
internal error : too many arguments to RCPP
Too many arguments were passed to the Resource Compiler preprocessor. Reduce the number of symbols
defined with the Define Symbols (/d) option by defining them in your source. This error can also be
caused by specifying too many include file search paths using the Include Search
Path option (/i).
Resource Compiler Fatal Error RC1103
invalid switch, option
The specified option is not a valid Resource Compiler option.
Resource Compiler Fatal Error RC1105
invalid switch, option: too many /d switches
Too many symbols were defined using the Define Symbols (/d) option. Define some symbols in your
source and recompile.
Resource Compiler Fatal Error RC1106
invalid switch: option
The specified option is not a valid Resource Compiler option. The following options are valid:
/r | Emit .RES file |
/v | Verbose (print progress messages) |
/d | Define a symbol |
/fo | Rename .RES file |
/l | Default language ID in hex |
/I | Add a path for INCLUDE searches |
/x | Ignore INCLUDE environment variable |
/c | Define a code page used by NLS Conversion |
Resource Compiler Fatal Error RC1107
invalid usage; use RC /? for Help
An invalid Resource Compiler option was specified. Valid options are one of the following: /r, /v,
/d, /fo, /l, /i, /x, or /c:
Resource Compiler Fatal Error RC1109
error creating resource-name
Could not create specified .RES file. Make sure it is not being created on a read-only drive. Use
the /V option to find out whether the file is being created.
Resource Compiler Fatal Error RC1110
could not open filename
RC could not open the specified resource script file. Make sure that the file exists.
Resource Compiler Fatal Error RC1116
RC terminating after preprocessor errors
The Resource Compiler halted due to other errors. Fix the other errors and recompile.
Resource Compiler Fatal Error RC1120
out of memory, needed number bytes
The Resource Compiler ran out of storage for items that it stores in its heap. Usually this is the
result of having too many symbols. One of the following may be a solution:
Resource Compiler Fatal Error RC1121
I/O error reading file
The Resource Compiler was not able to read a file. Check that the drive containing the file is
available and that the file is valid.
Resource Compiler Fatal Error RC1122
I/O error writing file
The Resource Compiler could not write to a file. This error may be caused by insufficient
disk space. You must have free space equivalent to about twice the size of the executable file
you are creating. Other possible reasons for this error are:
Resource Compiler Fatal Error RC1123
I/O error seeking in file
The compiler was unable to complete an I/O operation.
Resource Compiler Fatal Error RC1201
invalid switch - missing include path after /i
The Specify Include Path (/i) option was specified, but was not followed by a path.
Resource Compiler Fatal Error RC1202
invalid switch - missing default language ID after /l
The Specify Default Language (/l) option was specified, but was not followed by a hexadecimal
language ID.
Resource Compiler Fatal Error RC1203
invalid hexadecimal default language ID specified.
The Specify Default Language (/l) option was specified, but was followed by an invalid hexadecimal
language ID. See the Platform SDK for a list of valid language IDs.
Resource Compiler Fatal Error RC1204
Invalid switch - missing code page after /c
The Specify Code Page (/c) option was specified, but it was not followed by a code page.
Resource Compiler Fatal Error RC1205
invalid code page
The Specify Code Page (/c) option was specified, but was followed by an invalid code page. See
Code Pages in the the online documentation for more information.
Resource Compiler Fatal Error RC1206
specified code page at cmd line does not exist in registry
The Specify Code Page (/c) option was specified, but was followed by a code page whose location
is not specified in the registry.
Resource Compiler Fatal Error RC1207
default code page is invalid
The code page specified by the RCCODEPAGE environment variable is not valid. See Code Pages in
the online documentation for more information.
Resource Compiler Fatal Error RC1208
input file has .RES extension
The .RES extension is used for Resource Compiler output. The .RC extension should be used for
Resource Compiler scripts.