如何在Visual C++ 2008中显示命令行生成选项?

wel*_*mon 7 c++ visual-studio

Visual C++ 2008项目中,构建项目将在输出窗口中显示以下信息:

1>------ Build started: Project: Project1, Configuration: Debug Win32 ------
1>Compiling...
1>main.cpp
1>test1.cpp
1>test2.cpp
1>Generating Code...
1>Linking...
1>LINK : test.exe not found or not built by the last incremental link; performing full link
1>Project1- 0 error(s), 0 warning(s)
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
Run Code Online (Sandbox Code Playgroud)

我怎样才能得到这样的输出:

cl.exe /Od /I "includepath" /D "_UNICODE" /FD /EHsc /RTC1 /MDd /Zc:wchar_t- /Fo"Debug\\" /Fd"Debug\vc90.pdb" /nologo /c /ZI /TP /errorReport:prompt
Run Code Online (Sandbox Code Playgroud)

就像C#项目一样.

Gui*_*ici 13

这是通过项目属性页中"C/C++"选项卡的"常规"子选项卡中的"抑制启动标题"设置来控制的.如果将其设置为"否",它将在"输出"窗口中显示编译期间使用的命令行.


Jes*_*erE 7

打开构建日志记录(菜单工具选项项目和解决方案VC++项目设置构建日志记录).然后,您应该在中间文件目录中获取一个构建日志(BuildLog.htm),其中包含您需要的所有信息,包括错误消息.您还将Ctrl在输出窗口中获得一个可单击的链接以显示构建日志.