验证预处理器选项
MIDL 编译器隐式调用预处理器,并且不显示其预处理器开关。 在没有 MIDL /cpp_opt 开关的情况下,预处理器命令行由 MIDL 命令行中使用的所有 /I、 /D 和 /U 开关以及 /E 和 /nologo 开关组成。 若要查看传递给预处理器的开关,请使用编译器的 /confirm 开关。
例如,以下行
midl.exe -D_WIN32_WINNT=0x501 -robust -DNTENV=1 -Id:\nt\public\sdk\inc -confirm -Oicf -env win32 -out x86 stub.idl
生成以下输出:
32 bit arguments
input file - stub.idl
app_config - No
c_ext - Yes
client - stub
char - signed
confirm - Yes
cpp_cmd - cl.exe
cpp_opt - -Id:\nt\public\sdk\inc -D_WIN32_WINNT=0x501 -DNTENV=1 -
E -nologo
msc_ver - 1100
cstub - i386\stub_c.c
D - -D_WIN32_WINNT=0x501 -DNTENV=1
env - win32
append64 - No
rpcss - No
use_epv - No
no_default_epv - No
error - allocation ref bounds_check enum stub_data
header - i386\stub.h
I - -Id:\nt\public\sdk\inc
nologo - No
ms_ext - Yes
ms_union - No
no_format_opt - No
oldnames - No
out - i386\
server - stub
sstub - i386\stub_s.c
O - interpreted stubs
W - 1
Zp - 8