如何在Visual C ++ 2008中显示命令行生成选项? [英] How do I show command-line build options in Visual C++ 2008?

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

问题描述

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

In a Visual C++ 2008 project, building a project will display following information in the 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 ==========

我如何获得这样的输出:

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

就像C#项目一样.

推荐答案

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

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天全站免登陆