📄 subject_55074.htm
字号:
<p>
序号:55074 发表者:海q 发表日期:2003-10-06 10:10:13
<br>主题:求教出错原因
<br>内容:Compiling...<BR>Command line error D2016 : '/ZI' and '/O2' command-line options are incompatible<BR>Error executing cl.exe.<BR><BR>chineseqi.obj - 1 error(s), 0 warning(s)<BR>请问是什么原因造成的?
<br><a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p>
<hr size=1>
<blockquote><p>
<font color=red>答案被接受</font><br>回复者:michael 回复日期:2003-10-06 10:29:30
<br>内容:/02出错是说不能以最快速度方式优化。<BR>/ZI出错是说不能随时修改随时编译。这项自由再编译debug版时才起作用。<BR>可以用记事本打开工程的.dsp文件,手工去掉他们。<BR>从出错信息上,只能看出这么多。
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
回复者:michael 回复日期:2003-10-06 10:30:47
<br>内容:附上cl.exe的参数帮助:<BR><BR> C/C++ COMPILER OPTIONS<BR><BR> -OPTIMIZATION-<BR><BR>/O1 minimize space /Op[-] improve floating-pt consistency<BR>/O2 maximize speed /Os favor code space<BR>/Oa assume no aliasing /Ot favor code speed<BR>/Ob<n> inline expansion (default n=0) /Ow assume cross-function aliasing<BR>/Od disable optimizations (default) /Ox maximum opts. (/Ogityb1 /Gs)<BR>/Og enable global optimization /Oy[-] enable frame pointer omission<BR>/Oi enable intrinsic functions<BR><BR> -CODE GENERATION-<BR><BR>/G3 optimize for 80386 /Gy separate functions for linker<BR>/G4 optimize for 80486 /Ge force stack checking for all funcs<BR>/G5 optimize for Pentium /Gs[num] disable stack checking calls<BR>/G6 optimize for Pentium Pro /Gh enable hook function call<BR>/GB optimize for blended model (default) /GR[-] enable C++ RTTI<BR>/Gd __cdecl calling convention /GX[-] enable C++ EH (same as /EHsc)<BR>/Gr __fastcall calling convention /Gi[-] enable incremental compilation<BR>/Gz __stdcall calling convention /Gm[-] enable minimal rebuild<BR>/GA optimize for Windows Application /EHs enable synchronous C++ EH<BR>/GD optimize for Windows DLL /EHa enable asynchronous C++ EH<BR>(press <return> to continue)<BR>/Gf enable string pooling /EHc extern "C" defaults to nothrow<BR>/GF enable read-only string pooling /QIfdiv[-] enable Pentium FDIV fix<BR>/GZ enable runtime debug checks /QI0f[-] enable Pentium 0x0f fix<BR><BR> -OUTPUT FILES-<BR><BR>/Fa[file] name assembly listing file /Fo<file> name object file<BR>/FA[sc] configure assembly listing /Fp<file> name precompiled header file<BR>/Fd[file] name .PDB file /Fr[file] name source browser file<BR>/Fe<file> name executable file /FR[file] name extended .SBR file<BR>/Fm[file] name map file<BR><BR> -PREPROCESSOR-<BR><BR>/C don't strip comments /FI<file> name forced include file<BR>/D<name>{=|#}<text> define macro /U<name> remove predefined macro<BR>/E preprocess to stdout /u remove all predefined macros<BR>/EP preprocess to stdout, no #line /I<dir> add to include search path<BR>/P preprocess to file /X ignore "standard places"<BR><BR> -LANGUAGE-<BR><BR>/Zi enable debugging information /Zl omit default library name in .OBJ<BR>/ZI enable Edit and Continue debug info /Zg generate function prototypes<BR>(press <return> to continue)<BR>/Z7 enable old-style debug info /Zs syntax check only<BR>/Zd line number debugging info only /vd{0|1} disable/enable vtordisp<BR>/Zp[n] pack structs on n-byte boundary /vm<x> type of pointers to members<BR>/Za disable extensions (implies /Op) /noBool disable "bool" keyword<BR>/Ze enable extensions (default)<BR><BR> -MISCELLANEOUS-<BR><BR>/?, /help print this help message /V<string> set version string<BR>/c compile only, no link /w disable all warnings<BR>/H<num> max external name length /W<n> set warning level (default n=1)<BR>/J default char type is unsigned /WX treat warnings as errors<BR>/nologo suppress copyright message /Yc[file] create .PCH file<BR>/Tc<source file> compile file as .c /Yd put debug info in every .OBJ<BR>/Tp<source file> compile file as .cpp /Yu[file] use .PCH file<BR>/TC compile all files as .c /YX[file] automatic .PCH<BR>/TP compile all files as .cpp /Zm<n> max memory alloc (% of default)<BR><BR> -LINKING-<BR><BR>/MD link with MSVCRT.LIB /MDd link with MSVCRTD.LIB debug lib<BR>/ML link with LIBC.LIB /MLd link with LIBCD.LIB debug lib<BR>/MT link with LIBCMT.LIB /MTd link with LIBCMTD.LIB debug lib<BR>/LD Create .DLL /F<num> set stack size<BR>(press <return> to continue)<BR>/LDd Create .DLL debug libary /link [linker options and libraries]
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -