【问题标题】:error MSB6006: "cmd.exe" exited with code错误 MSB6006:“cmd.exe”退出代码
【发布时间】:2012-03-01 19:00:21
【问题描述】:

我正在为我的 USB 设备构建驱动程序。在使用 msvisual studio10 构建时,出现以下两个错误:

 C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5):
 error MSB6006: "cmd.exe" exited with code

C:/boost32/include/boost-1_48\boost/numeric/conversion/detail/preprocessed/numeric_cast_traits.hpp(34):
error C2766: explicit specialization;
'boost::numeric::numeric_cast_traits<char,char>' has already been
defined 2>         
C:/boost32/include/boost-1_48\boost/numeric/conversion/detail/preprocessed/numeric_cast_traits.hpp(18)
: see previous definition of 'numeric_cast_traits<char,char,void>'

帮助我摆脱这两个阻碍我项目构建过程的错误。

【问题讨论】:

  • 我也有同样的问题!...有人可以帮忙吗?
  • 您能添加一些上下文吗?也许分享一些代码?
  • 这个问题你解决了吗???
  • 使用 /v:diag 开关运行 MSBuild.exe,然后您可以从诊断输出中读取并查看 cmd.exe 的确切错误消息。

标签: c++ visual-studio-2010 boost msbuild


【解决方案1】:

我意识到这个问题已经很老了,但有些人似乎对解决方案感兴趣。

我相信,boost 编译问题可能描述为here。问题在于 boost 版本 1.48,正是您所拥有的。

然后,要修复它,请尝试使用较新的 boost 版本,或者只是从较新的 boost 版本中获取有问题的标头。

现在,cmd.exe错误很有可能是这次编译失败造成的。

【讨论】:

    猜你喜欢
    • 2012-10-18
    • 2013-02-28
    • 1970-01-01
    • 2014-04-28
    • 1970-01-01
    • 2015-03-19
    • 1970-01-01
    • 2013-03-24
    • 2020-06-19
    相关资源
    最近更新 更多