当我尝试使用 2010 构建我的 VC++ 代码时,我收到了错误消息
> C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error MSB6006: "cmd.exe"exited with code 1.
请告诉如何克服这个问题?
最佳答案
从 Error List Tab
导航到 Visual Studios Output
文件夹由以下之一:
Output
在底部的标准 VS View 中View > Output
或 Ctrl+Alt+O
在哪里 Show output from <build>
应该被选中。
您可以通过分析输出日志了解更多信息。
在我的情况下,这是 Cmake 步骤中的错误,见下文。如其他答案中所述,它可以在任何构建步骤中。
> -- Build Type is debug
> CMake Error in CMakeLists.txt:
> A logical block opening on the line
> <path_to_file:line_number>
> is not closed.
关于visual-studio-2010 - 错误 MSB6006 : "cmd.exe" exited with code 1,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13118947/
相关文章:
git - 如何动态选择要在 Jenkins 构建中使用的 git 分支
java - Maven 构建编译错误 : Failed to execute goal org.
java - ANT_HOME 设置不正确或 ant 无法定位
c++ - 如何使用 MinGW 构建 Boost 1.55?
xcode - "Run Script"在构建阶段需要什么权限?
plugins - 如何将作业放入 Jenkins 的 Throttle Concurrent Bu
eclipse - 如何使用 Eclipse CDT 构建 SCons 项目?