我正在为我的 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>'
帮助我摆脱这两个阻碍我项目构建过程的错误。
最佳答案
我意识到这个问题很老了,但有些人似乎对解决方案感兴趣。
我相信,boost 编译问题可能描述为here .问题出在 boost 版本 1.48,这正是您所拥有的。
然后,要修复它,请尝试使用较新的 boost 版本或仅从较新的 boost 版本中获取有问题的 header 。
现在看来,cmd.exe的错误很有可能就是这次编译失败造成的。
关于c++ - 错误 MSB6006 : "cmd.exe" exited with code,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9208630/