Specifications
Resource Compiler Messages Page 20 of 24
Resource Compiler Fatal Error RW1030
Output Error
The output error can be caused by any of following conditions:
Errors occurred when linking file
LINK failed. See Set Linker Options and Linker Reference for more information about linking
an executable.
.EXE file too large; relink with higher /ALIGN value
f the .EXE file is larger than 800K, you should use the /ALIGN:32 value on your LINK line.
File not created by LINK
You must create the .EXE file with a version of Microsoft LINK later than 5.0 or with LINKW.
Invalid .EXE file
Make sure that the linker created the .EXE file correctly and that the file exists. You can check
the .EXE file with the DUMPBIN utility.
Not a Microsoft Windows format .EXE file
Make sure that the linker created the .EXE file correctly and that the file exists. You can check
the .EXE file with the DUMPBIN utility.
Unable to create destination
RC was not able to create the destination file. Make sure that there is enough disk space and
that you have write permission on the volume.
Unable to open exe-file
RC could not open this .EXE file. Make sure that the linker created it correctly and that the file
exists.
Resource Compiler Error RW2001
Invalid directive in preprocessed RC file
The RC file contains a #pragma directive. Use the #ifndef preprocessor directive with the
RC_INVOKED constant that the Resource Compiler defines when it processes an include file. Place
the #pragma directive inside a block of code that is not processed when the RC_INVOKED constant
is defined. Code in the block is processed only by the C/C++ compiler and not by the Resource
Compiler. The following sample code demonstrates this technique:
#ifndef RC_INVOKED
#pragma pack(2) // C/C++ only, ignored by Resource Compiler
#endif
The #pragma preprocessor directive has no meaning in an .RC file. The #include preprocessor
directive is used frequently in an .RC file to include a header file (either a project-based custom header
file or a standard header file provided by Microsoft with one of its products). Some of these include
files contain the #pragma directive. Because a header file can include one or more other header files,
the file that contains the offending #pragma directive may not be immediately obvious. The #ifndef
RC_INVOKED technique can control including header files in project-based header files.
Resource Compiler Error RW2002
Parsing error
The parsing error can be caused by any of following conditions:










