Generaloptions:-V Print version number and exit.
-o,--output=name
Set the name of the output file. When generating multiple output files, this sets only the base
name of the file; the respective output files are then named name.h, name_p.c, etc. If a full
file name with extension is specified, only that file is generated.
-b,--target=cpu-manufacturer[-kernel]-os
Set the target architecture when cross-compiling. The target specification is in the standard
autoconf format as returned by config.sub.
-m32,-m64,--win32,--win64
Force the target architecture to 32-bit or 64-bit.
--sysroot=dir
Prefix the standard include paths with dir.
--nostdinc
Do not search standard include paths like /usr/include and /usr/local/include.
Headeroptions:-h Generate header files. The default output filename is infile.h.
--oldnames
Use old naming conventions.
Typelibraryoptions:-t Generate a type library. The default output filename is infile.tlb. If the output file name ends
in .res, a binary resource file containing the type library is generated instead.
-Lpath
Add a directory to the library search path for imported typelibs. The option can be specified
multiple times.
--oldtlb
Generate a type library in the old format (SLTG format).
UUIDfileoptions:-u Generate a UUID file. The default output filename is infile_i.c.
Proxy/stubgenerationoptions:--align=n,--packing=n
Set the structure packing to n. Supported values are 2, 4, and 8.
-c Generate a client stub file. The default output filename is infile_c.c.
-Os Generate inline stubs.
-Oi Generate old-style interpreted stubs.
-Oif,-Oic,-Oicf
Generate new-style fully interpreted stubs. This is the default.
-p Generate a proxy. The default output filename is infile_p.c.
--prefix-all=prefix
Prefix to put on the name of both client and server stubs.
--prefix-client=prefix
Prefix to put on the name of client stubs.
--prefix-server=prefix
Prefix to put on the name of server stubs.
-s Generate a server stub file. The default output filename is infile_s.c.
--winrt
Enable Windows Runtime mode.
--ns_prefix
Prefix namespaces with ABI namespace.
Registrationscriptoptions:-r Generate a registration script. The default output filename is infile_r.rgs. If the output file
name ends in .res, a binary resource file containing the script is generated instead.
Dlldatafileoptions:--dlldata-onlyname1 [name2...]
Regenerate the dlldata file from scratch using the specified proxy names. The default output
filename is dlldata.c.
Preprocessoroptions:-Ipath
Add a directory to the include search path. Multiple include directories are allowed.
-Did[=val]
Define preprocessor macro id with value val.
-E Preprocess only.
-N Do not preprocess input.
Debugoptions:-W Enable pedantic warnings.
-dn Set debug level to the non negative integer n. If prefixed with 0x, it will be interpreted as an
hexadecimal number. For the meaning of values, see the DEBUG section.
Miscellaneousoptions:-app_config
Ignored, present for midl compatibility.
--acf=file
Use specified application configuration file.
--local-stubs=file
Generate empty stubs for call_as/local methods in an object interface and write them to file.