The resource compiler receives an .rc file as input that is written in a special language for describing resources. It will produce a binary file as output with the .res extension that can be used with the other object files by the linker to build an executable.
Usage:
lrc [options] .RC input file
Switches:
|
Option |
Meaning |
|
/r |
Build a .res file. This is assumed, so this option is there just for compatibility with earlier versions of rc. |
|
/v |
Verbose output |
|
/m |
Build a map file. The name of the map file will be the same as the output file with a .map extension. |
|
/dSYM |
Define symbol. This is for Lrc's pre-processor. |
|
/ofile |
Write the output into <file>. No space should be left between the o and the name of the file. |
|
/fo |
Same as above. |
|
/l |
Default language number follows in hexadecimal. |
|
/I |
Add an include path. |
|
/p |
Print in the standard output a list of file dependencies of the given input resource file. |
Flags are not case sensitive.
The resource compiler defines the symbol
RC_INVOKED
To
allow you conditional compilation of resources and to direct it to avoid much of
the program text.