Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

error MSB6006: "cmd.exe" exited with code 1

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?

like image 660
user1782464 Avatar asked Oct 29 '12 09:10

user1782464


2 Answers

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. 
like image 104
vasquez Avatar answered Sep 29 '22 22:09

vasquez


error MSB6006: "cmd.exe" exited with code -Solved

I also face this problem . In my case it is due to output exe already running .I solved my problem simply close the application instance before building.

like image 31
CLIFFORD P Y Avatar answered Sep 30 '22 00:09

CLIFFORD P Y