严重性 代码 说明 项目 文件 行 禁止显示状态 错误 CMake Error at E:/visual studio/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.24/Modules/CMakeTestCCompiler.cmake:69 (message): The C compiler "E:/visual studio/VC/Tools/MSVC/14.34.31933/bin/Hostx64/x64/cl.exe" is not able to compile a simple test program. It fails with the following output: Change Dir: F:/break-through-2v2-demo-c++/out/build/x64-Debug/CMakeFiles/CMakeTmp Run Build Command(s):E:/visual studio/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe cmTC_c2a82 && [1/2] Building C object CMakeFiles\cmTC_c2a82.dir\testCCompiler.c.obj FAILED: CMakeFiles/cmTC_c2a82.dir/testCCompiler.c.obj "E:\visual studio\VC\Tools\MSVC\14.34.31933\bin\Hostx64\x64\cl.exe" -o CMakeFiles\cmTC_c2a82.dir\testCCompiler.c.obj -c F:\break-through-2v2-demo-c++\out\build\x64-Debug\CMakeFiles\CMakeTmp\testCCompiler.c 用于 x64 的 Microsoft (R) C/C++ 优化编译器 19.34.31933 版 版权所有(C) Microsoft Corporation。保留所有权利。 cl: 命令行 warning D9035 :“o”选项已否决,并将在将来的版本中移除 testCCompiler.c c1: fatal error C1356: 无法找到 mspdbcore.dll ninja: build stopped: subcommand failed. CMake will not be able to correctly generate this project. E:/visual studio/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.24/Modules/CMakeTestCCompiler.cmake 69
时间: 2023-12-15 20:04:45 浏览: 367
根据错误信息显示,CMake在编译期间遇到了问题。具体来说,它无法找到名为"mspdbcore.dll"的文件。这个文件是Visual Studio的一部分,它可能没有被正确地安装或配置。请确保你的Visual Studio安装完整且正确,并且所有必需的组件都已正确配置。如果问题仍然存在,你可以尝试重新安装Visual Studio或检查相关的环境变量设置。
阅读全文