gpt4 book ai didi

visual-c++ - CMake cl.exe 无法编译简单的测试程序

转载 作者:行者123 更新时间:2023-12-04 06:48:59 31 4
gpt4 key购买 nike

这是 CMake 输出:

-- The C compiler identification is MSVC 16.0.30319.1
-- The CXX compiler identification is MSVC 16.0.30319.1
-- Eclipse version is set to 3.6 (Helios). Adjust CMAKE_ECLIPSE_VERSION if this is wrong.
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio
10.0/VC/bin/amd64/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio
10.0/VC/bin/amd64/cl.exe -- broken
CMake Error at C:/Program Files (x86)/CMake/share/cmake-3.2/Modules/CMakeTestCCompiler.cmake:61 (message):
The C compiler "C:/Program Files (x86)/Microsoft Visual Studio 10.0/VC/bin/amd64/cl.exe" is not able to compile a simple test program.

It fails with the following output:

Change Dir: E:/Code/Git/Brendan-C-SFML/build/CMakeFiles/CMakeTmp

我已经检查了一些关于此的其他问题,他们说要降级到 .NET 4.0,但这对我不起作用。

最佳答案

在这个答案中:Cmake is Unable to Configure Project for Visual Studios 10 amd64

我找到了我的问题的解决方案。

对我来说是:

I found that my x64 compilers were destroyed by installing SP 1. Try this update to restore them: http://www.microsoft.com/en-us/download/details.aspx?id=4422



我已经更新了编译器,现在它可以工作了。

关于visual-c++ - CMake cl.exe 无法编译简单的测试程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30553318/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com