如何在Visual C ++ 2008中显示命令行构建选项? [英] How to show command line build options in Visual C++ 2008?

查看:118
本文介绍了如何在Visual C ++ 2008中显示命令行构建选项?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

  1> ------构建启动:Project:Project1,Configuration:Debug Win32 --- --- 
1>编译...
1> main.cpp
1> test1.cpp
1> test2.cpp
1>生成代码.. 。
1>链接...
1> LINK:未找到或未由最后一个增量链接构建的test.exe;执行完整链接
1> Project1- 0错误,0警告
========== Build:1成功,0失败,0最新,0 skipped ==========

输出如下:

  cl.exe / Od / Iincludepath/ D_UNICODE EHsc / RTC1 / MDd / Zc:wchar_t- / FoDebug \\/Fd\"Debug\vc90.pdb/ nologo / c / ZI / TP / errorReport:prompt 

解决方案

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


In a Visual C++ 2008 project, building a project will display following information in output window:

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 ==========

How get I get a output like this:

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

Like a C# project will do.

解决方案

This is controlled via the "Suppress startup banner" setting in the "General" sub-tab of the "C/C++" tab in the project's property pages. If you set it to "No", it will show in the Output window the command line being used during compilation.

这篇关于如何在Visual C ++ 2008中显示命令行构建选项?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆