error MSB6006: "cmd.exe" exited with code 1
build, compiler-errors, visual-studio-2010
Solution
Navigate from `Error List Tab` to the Visual Studios `Output` folder by one of the following:
- Select tab `Output` in standard VS view at the bottom
- Click in Menubar `View > Output` or `Ctrl+Alt+O`
where `Show output from <build>` should be selected.
You can find out more by analyzing the output logs.
In my case it was an error in the Cmake step, see below. It could be in any build step, as described in the other answers.
> -- Build Type is debug
> CMake Error in CMakeLists.txt:
> A logical block opening on the line
> <path_to_file:line_number>
> is not closed.
Problem
When I'm trying to build my VC++ code using 2010 I'm getting the error message `> C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error MSB6006: "cmd.exe" exited with code 1.` Please tell how to overcome this?