MSB6006: "cmd.exe" exited with code 9009

TahaYusuf picture TahaYusuf · Aug 22, 2012 · Viewed 35.1k times · Source

When I try to build VTK on VS 2010, I get this error error MSB6006: "cmd.exe" exited with code 9009. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets 151 6 vtkhdf5

Before this, I build QT successfully from VS command prompt.
My opinion is that there's something wrong with the paths of directories.
I've been searching on the internet for a while but couldn't find a way to fix.

Answer

zionpi picture zionpi · Aug 16, 2013

You should first check the output window message of your VS2010 rather than just error list window.

After that, you can find some hint on your errors, like missing executable files or something like that. Errors may vary, but if your case is - exe file missing, then go to project properties:

Project(Your project name) -> Properties -> Configuration Properties -> VC++ Directories -> Executable Directories

, add the folder of your missing exe.