简体   繁体   中英

error MSB6006: “cmd.exe” with Code 9009; command “C:\Program”

I am using Visual Studio 2010, unfortunately in German, and I get an error MSB6006: "cmd.exe" with Code 9009, see here:

1>C:\\Program Files (x86)\\MSBuild\\Microsoft.Cpp\\v4.0\\Microsoft.CppCommon.targets(151,5): error MSB6006: "cmd.exe" wurde mit dem Code 9009 beendet.

The output says command "C:\\Program" can't be found.

The error originates here:

<CustomBuild
  Sources                     ="@(CustomBuild)"
  BuildSuffix                 ="$(BuildSuffix)"

  TrackerLogDirectory         ="%(CustomBuild.TrackerLogDirectory)"
  MinimalRebuildFromTracking  ="%(CustomBuild.MinimalRebuildFromTracking)"

  TLogReadFiles               ="@(CustomBuildTLogReadFiles)"
  TLogWriteFiles              ="@(CustomBuildTLogWriteFiles)"
  TrackFileAccess             ="$(TrackFileAccess)"
  ToolArchitecture            ="$(CustomBuildToolArchitecture)"
  TrackerFrameworkPath        ="$(CustomBuildTrackerFrameworkPath)"
  TrackerSdkPath              ="$(CustomBuildTrackerSdkPath)"

  AcceptableNonZeroExitCodes  ="%(CustomBuild.AcceptableNonZeroExitCodes)"
  >
</CustomBuild>

It seems like some environmental variable is wrong in regards to the spaces. I assume it could be fixed easily by adding "s somewhere, but I don't know where and haven't found anything useful. How can I fix this?

I have resloved the issue by moving libraries that I use (qt, osg) in a folder without spaces. I believe the problem was related to qt.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM