How do I show command-line build options in Visual C++ 2008?

前端 未结 3 881
时光说笑
时光说笑 2020-12-10 16:49

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

1>------ Build started: Project: Project1, Confi         


        
相关标签:
3条回答
  • 2020-12-10 17:03

    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.

    0 讨论(0)
  • 2020-12-10 17:19

    Switch on build logging (menu ToolsOptionsProjects and SolutionsVC++ Project SettingsBuild Logging). You should then get a build log (BuildLog.htm) in your intermediate files directory which contains all the information you need, including error messages. You will also get a Ctrl-clickable link in the output window to display the build log.

    0 讨论(0)
  • 2020-12-10 17:20

    You can view the options passed to cl via project properties → C/C++Command Line.

    I am working on a German version of Visual Studio 2005, so I hope my translations do map to the English Visual Studio.

    0 讨论(0)
提交回复
热议问题