46 Chapter 13. windres
-o filename
-output filename
The name of the output file. If this option is not used, then windres will use the first non-option
argument, after any used for the input file name, as the output file name. If there is no non-option
argument, then windres will write to standard output. windres can not write a COFF file to
standard output. Note, for compatability with rc the option -fo is also accepted, but its use is
not recommended.
-J format
-input-format format
The input format to read. format may be res, rc, or coff. If no input format is specified,
windres will guess, as described above.
-O format
-output-format format
The output format to generate. format may be res, rc, or coff. If no output format is specified,
windres will guess, as described above.
-F target
-target target
Specify the BFD format to use for a COFF file as input or output. This is a BFD target name;
you can use the -help option to see a list of supported targets. Normally windres will use the
default format, which is the first one listed by the -help option. Section 16.1 Target Selection.
-preprocessor program
When windres reads an rc file, it runs it through the C preprocessor first. This option may be
used to specify the preprocessor to use, including any leading arguments. The default preproces-
sor argument is gcc -E -xc-header -DRC_INVOKED.
-I directory
-include-dir directory
Specify an include directory to use when reading an rc file. windres will pass this to the pre-
processor as an -I option. windres will also search this directory when looking for files named
in the rc file. If the argument passed to this command matches any of the supported formats
(as descrived in the -J option), it will issue a deprecation warning, and behave just like the -J
option. New programs should not use this behaviour. If a directory happens to match a format,
simple prefix it with ./ to disable the backward compatibility.
-D target
-define sym[=val]
Specify a -D option to pass to the preprocessor when reading an rc file.
-U target
-undefine sym
Specify a -U option to pass to the preprocessor when reading an rc file.
-r
Ignored for compatibility with rc.
-v
Enable verbose mode. This tells you what the preprocessor is if you didn’t specify one.
Commentaires sur ces manuels