c++ - 错误 MSB6006 : "cmd.exe" exited with code

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

我正在为我的 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/

相关文章:

c++ - 对象的 reinterpret_cast

C++11:在 std::array<char, N> 上定义函数

.net - VS2010 .NET内存分析-非常慢

visual-studio-2010 - 关闭Visual Studio查找默认选择

c++ - 使用 boost::is_any_of 拆分会混淆定界符 ",,"和 ","

c++ - Qt Creator : unit-test: is it possible to have four ways of building a code (debug, 发布、调试|发布和测试)

C++ V8 对象上下文

c++ - 我如何包装 BOOST_CHECK_CLOSE?

c++ - 错误的笔颜色

c++ - 如何使用 boost lambda 用新对象填充指针 vector