In a Visual C++ 2008 project, building a project will display following information in the output window:
1>------ Build started: Project: Project1, Confi
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.
Switch on build logging (menu Tools → Options → Projects and Solutions → VC++ Project Settings → Build 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.
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.