CMake Error at E:/CLion 2021.1.2/bin/cmake/win/share/cmake-3.19/Modules/CMakeTestCCompiler.cmake:66 (message):
The C compiler
"F:/mingw64/bin/gcc.exe"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: F:/my code/cmake-build-debug/CMakeFiles/CMakeTmp
Run Build Command(s):F:/mingw64/bin/mingw32-make.exe cmTC_0a887/fast && F:/mingw64/bin/mingw32-make.exe -f CMakeFiles\cmTC_0a887.dir\build.make CMakeFiles/cmTC_0a887.dir/build
mingw32-make.exe[1]: Entering directory 'F:/my code/cmake-build-debug/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_0a887.dir/testCCompiler.c.obj
F:\mingw64\bin\gcc.exe -o CMakeFiles\cmTC_0a887.dir\testCCompiler.c.obj -c "F:\my code\cmake-build-debug\CMakeFiles\CMakeTmp\testCCompiler.c"
cc1.exe: fatal error: F:\my code\cmake-build-debug\CMakeFiles\CMakeTmp\testCCompiler.c: Permission denied
compilation terminated.
mingw32-make.exe[1]: *** [CMakeFiles\cmTC_0a887.dir\build.make:84: CMakeFiles/cmTC_0a887.dir/testCCompiler.c.obj] Error 1
mingw32-make.exe[1]: Leaving directory 'F:/my code/cmake-build-debug/CMakeFiles/CMakeTmp'
mingw32-make.exe: *** [Makefile:139: cmTC_0a887/fast] Error 2
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:2 (project)
-- Configuring incomplete, errors occurred!
See also "F:/my code/cmake-build-debug/CMakeFiles/CMakeOutput.log".
See also "F:/my code/cmake-build-debug/CMakeFiles/CMakeError.log".
[已完成]
求大家帮忙解决!
建议你用DEV-C++
提示明确,debug功能好,稳定性高;
放上我的下载地址:
DEV-C++.zip-其它文档类资源-CSDN下载 安装包-DEVC++-免费更多下载资源、学习资料请访问CSDN下载频道. https://download.csdn.net/download/stjp20080714/21131228