Export (0) Print
Expand All

MIDL Command-Line Reference

This section contains reference information for each command-line switch and switch option recognized by the Microsoft RPC MIDL compiler. Switch entries are arranged in alphabetical order. General MIDL Command-line Syntax describes the general command-line syntax.

General MIDL Command-line Syntax
The Response File Command
/acf
/align
/amd64
/app_config
/backward_compat
/c_ext
/caux
/char
/client
/confirm
/cpp_cmd
/cpp_opt
/cstub
/D
/dlldata
/env
/error
/error
/h
/header
/help (/?)
/ia64
/I
/iid
/import
/lcid
/mktyplib203
/ms_ext
/ms_union
/msc_ver
/new
/newtlb
/no_cpp, /nocpp
/no_default_epv
/no_def_idir
/no_format_opt
/no_robust
/no_warn
/nologo
/notlb
/o
/Oi
/old
/oldtlb
/oldnames
/Os
/osf
/out
/pack
/prefix
/protocol
/proxy
/robust
/rpcss
/sal
/sal_local
/saux
/savePP
/sstub
/syntax_check
/<system>
/target
/tlb
/U
/use_epv
/version_stamp
/W
/warn
/win32
/win64
/WX
/Zp
/Zs

The MIDL compiler can generate code for different platforms and system releases. Consult the /target switch to learn more about suggested switches and how to generate code optimized for a given release.

Note that the minus sign (–) may be substituted for the slash (/) in all MIDL command-line switches that begin with a slash (/). The following example demonstrates their equivalence when invoking the MIDL compiler.

Examples

midl /acf my_acf.acf filename.idl

midl -acf my_acf.acf filename.idl

 

 

Community Additions

ADD
Show:
© 2014 Microsoft