![]() |
C++ Vs2008编译选项
C/C++ 编译器选项
-基本选项卡- General Additional Include Directions Debug Information Format /Zi 启用调试信息 /Z7 启用旧式调试信息 /ZI 启用“编辑并继续”调试信息 Suppress Startup Banner /nologo 取消显示版权消息 Warning Level /w<l><n> 为 n 设置警告等级 1-4 /W<n> 设置警告等级(默认 n=1) Detect 64-bit Portability Issues /Wp64 启用 64 位端口定位警告 Treat Warning As Errors /WX 将警告视为错误 /we<n> 将警告 n 视为错误 /wo<n> 发出一次警告 n Use UNICODE Response Files -优化选项卡- Optimization Optimization /Od 禁用优化(默认) /O1 最小化空间 /O2 最大化速度 /Ox 最大化优化 /Og 启用全局优化 Inline Function Expansion /Ob<n> 内联扩展(默认 n=0) Enable Intrinsic Functions /Oi[-] 启用内部函数 Favor Size or Speed /Os 优选代码空间 /Ot 优选代码速度 Omit Frame Pointers /Oy[-] 启用帧指针省略 Enable Fiber-safe Optimizations /GT生成纤程安全 TLS 访问 Whole Program Optimization /GL -预处理选项卡- Preprocessor Preprocessor Definitions /I<dir> 添加到包含搜索路径 Ignore Standard Include Path /X 忽略“标准位置” Generate Preprocessor File /P 预处理到文件 /EP 预处理到标准输出,没有 #line /E 将预处理定向到 stdout Keep Comments /C 不抽出注释 /FU<file> 强制使用程序集/模块 -代码生成选项卡- Code Generation Enable String Pooling /GF 启用只读字符串池 Enable Minimal Rebuild /Gm[-] 启用最小重新生成 Enable C++ Exceptions /EHs 启用 C++ EH (没有 SEH 异常) /EHc 外部“C”默认为 nothrow Small Type Check /RTCc 转换为较小的类型检查 Basic Runtime Checks /RTC1 启用快速检查(/RTCsu) /RTCs 堆栈帧运行时检查 /RTCu 未初始化的局部用法检查 Runtime Library /MT LIBCMT.LIB 链接 /MTd LIBCMTD.LIB 调试库链接 /MD MSVCRT.LIB 链接 /MDd MSVCRTD.LIB 调试库链接 Struct Member Alignment /ZP(n) 结构体成员变量对齐 Buffer Security Check /GS[-] 启用安全检查 Enable Function-Level Linking /Gy[-] 分隔链接器函数 Enable Enhanced Instruction Set /arch:<SSE|SSE2> CPU 结构的最低要求,为以下内容之一: SSE - 启用支持 SSE 的 CPU 可用的指令 SSE2 - 启用支持 SSE2 的 CPU 可用的指令 Floating Point Model /fp:<except[-]|fast|precise|strict> 选择浮点模式: except[-] - 在生成代码时考虑浮点异常 fast -“fast”浮点模式;结果可预测性比较低 precise -“precise”浮点模式;结果可预测 strict -“strict”浮点模式(意味着 /fp:except) Enable Floatint Point Exceptions 同Floating Point Model -语言选项卡- Language Disable Language Extensions /Za 禁用扩展 Default Char Unsigned /J 默认 char 类型是 unsigned Treat wchar_t as Built-in Type Force Comfomance In For Loop Scope Enable Run-Time Type Info /GR[-] 启用 C++ RTTI OpenMP Support /openmp 启用 OpenMP 2.0 语言扩展 -预编译头文件选项卡- Precompiled Head Precompiled Head File /Fp<file> 命名预编译头文件 -输出文件选项卡- Output Files Expand Attributed Source /Fx 将插入的代码合并到文件中 Assembler Output /FA[scu] 配置程序集列表 ASM List Location Object File Name /Fo<file> 命名对象文件 Program Database File Name /Fd[file] 命名 .PDB 文件 Generate XML Documentation Files /doc[file] 处理 XML 文档注释,并可选择命名 .xdc 文件 XML Documentation File Name 同Generate XML Documentation Files -浏览信息选项卡- Browse Information Enable Browse Information /Fr[file] 命名源浏览器文件 /FR[file] 命名扩展 .SBR 文件 Browse File 同Enable Browse Information -高级选项卡- Advanced Calling Convention /Gd __cdecl 调用约定 /Gr __fastcall 调用约定 /Gz __stdcall 调用约定 Compile As /Tp<source file> 将文件编译为 .cpp /TC 将所有文件编译为 .c Disable Specific Warnings /wd<n> 禁用警告 n /w 禁用所有警告 /Wall 启用所有警告 Force Includes /FI<file> 命名强制包含文件 Force #using Show Includes Undefine Preprocessor Definitions /U<name> 移除预定义的宏 Undefine All Preprocessor Definitions /u 移除所有预定义的宏 Enable Code Analysis For C/C++ on Build /analyze[:WX-] 启用代码分析, 即使调用了 /WX,也不应将代码分析警告视为错误 Use Full Paths /FC 诊断中使用完整路径名 Omit Default Library Names /Zl 忽略 .OBJ 中的默认库名 Error Reporting /errorReport:option 将内部编译器错误报告给 Microsoft none - 不发送报告 prompt - 提示立即发送报告 queue - 在下一次管理员登录时,提示发送报告(默认) send - 自动发送报告 |
所有的时间均为北京时间。 现在的时间是 08:14 PM. |