clion环境配置出错,cmake出错,导致简单main.cpp程序不能执行

撸java代码 撸java代码 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
"C:\clion\CLion 2019.1.2\bin\cmake\win\bin\cmake.exe" -DCMAKE_BUILD_TYPE=Debug -G "CodeBlocks - MinGW Makefiles" E:\clion\clion工程文件夹
-- The C compiler identification is unknown
-- The CXX compiler identification is GNU 8.2.0
-- Check for working C compiler: C:/mingw/bin/gcc.exe
-- Check for working C compiler: C:/mingw/bin/gcc.exe -- broken
CMake Error at C:/clion/CLion 2019.1.2/bin/cmake/win/share/cmake-3.14/Modules/CMakeTestCCompiler.cmake:60 (message):
The C compiler

"C:/mingw/bin/gcc.exe"

is not able to compile a simple test program.

It fails with the following output:

Change Dir: E:/clion/clion宸ョ鏂囦欢澶/cmake-build-debug/CMakeFiles/CMakeTmp

Run Build Command(s):C:/mingw/bin/mingw32-make.exe cmTC_c1b8b/fast
C:/mingw/bin/mingw32-make.exe -f CMakeFiles\cmTC_c1b8b.dir\build.make CMakeFiles/cmTC_c1b8b.dir/build
mingw32-make.exe[1]: Entering directory 'E:/clion/clion宸ョ鏂囦欢澶/cmake-build-debug/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_c1b8b.dir/testCCompiler.c.obj
C:\mingw\bin\gcc.exe -o CMakeFiles\cmTC_c1b8b.dir\testCCompiler.c.obj -c E:\clion\clion瀹搞儳鈻奸弬鍥︽婢剁cmake-build-debug\CMakeFiles\CMakeTmp\testCCompiler.c
gcc.exe: error: E:\clion\clion瀹搞儳鈻奸弬鍥︽婢剁cmake-build-debug\CMakeFiles\CMakeTmp\testCCompiler.c: No such file or directory
gcc.exe: fatal error: no input files
compilation terminated.
CMakeFiles\cmTC_c1b8b.dir\build.make:64: recipe for target 'CMakeFiles/cmTC_c1b8b.dir/testCCompiler.c.obj' failed
mingw32-make.exe[1]: *** [CMakeFiles/cmTC_c1b8b.dir/testCCompiler.c.obj] Error 1
mingw32-make.exe[1]: Leaving directory 'E:/clion/clion宸ョ鏂囦欢澶/cmake-build-debug/CMakeFiles/CMakeTmp'
Makefile:120: recipe for target 'cmTC_c1b8b/fast' failed
mingw32-make.exe: *** [cmTC_c1b8b/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 "E:/clion/clion宸ョ鏂囦欢澶/cmake-build-debug/CMakeFiles/CMakeOutput.log".
See also "E:/clion/clion宸ョ鏂囦欢澶/cmake-build-debug/CMakeFiles/CMakeError.log".

[Finished]





不知为什么cmake出现错误请求各位大神帮帮忙
感谢了!!!
...全文

相关推荐

评论 6
收藏 已收藏
分享
返回顶部