小白在用Clion跑C++程序时遇到的问题 30
"C:\ProgramFiles\JetBrains\CLion2018.3.1\bin\cmake\win\bin\cmake.exe"-DCMAKE_BUILD_TY...
"C:\Program Files\JetBrains\CLion 2018.3.1\bin\cmake\win\bin\cmake.exe" -DCMAKE_BUILD_TYPE=Debug -G "CodeBlocks - MinGW Makefiles" C:\Users\毕一航\CLionProjects\untitled5
-- The C compiler identification is GNU 6.3.0
-- The CXX compiler identification is GNU 6.3.0
-- Check for working C compiler: E:/WinGW/bin/gcc.exe
-- Check for working C compiler: E:/WinGW/bin/gcc.exe -- broken
CMake Error at C:/Program Files/JetBrains/CLion 2018.3.1/bin/cmake/win/share/cmake-3.13/Modules/CMakeTestCCompiler.cmake:52 (message):
The C compiler
"E:/WinGW/bin/gcc.exe"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: C:/Users/姣曚竴鑸�/CLionProjects/untitled5/cmake-build-debug/CMakeFiles/CMakeTmp
Run Build Command:"E:/WinGW/bin/mingw32-make.exe" "cmTC_62e58/fast"
E:/WinGW/bin/mingw32-make.exe -f CMakeFiles\cmTC_62e58.dir\build.make CMakeFiles/cmTC_62e58.dir/build
mingw32-make.exe[1]: Entering directory 'C:/Users/姣曚竴鑸�/CLionProjects/untitled5/cmake-build-debug/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_62e58.dir/testCCompiler.c.obj
E:\WinGW\bin\gcc.exe -o CMakeFiles\cmTC_62e58.dir\testCCompiler.c.obj -c C:\Users\濮f洑绔撮懜鐚廋LionProjects\untitled5\cmake-build-debug\CMakeFiles\CMakeTmp\testCCompiler.c
gcc.exe: error: C:\Users\濮f洑绔撮懜鐚廋LionProjects\untitled5\cmake-build-debug\CMakeFiles\CMakeTmp\testCCompiler.c: No such file or directory
gcc.exe: fatal error: no input files
compilation terminated.
CMakeFiles\cmTC_62e58.dir\build.make:64: recipe for target 'CMakeFiles/cmTC_62e58.dir/testCCompiler.c.obj' failed
mingw32-make.exe[1]: *** [CMakeFiles/cmTC_62e58.dir/testCCompiler.c.obj] Error 1
mingw32-make.exe[1]: Leaving directory 'C:/Users/姣曚竴鑸�/CLionProjects/untitled5/cmake-build-debug/CMakeFiles/CMakeTmp'
Makefile:120: recipe for target 'cmTC_62e58/fast' failed
mingw32-make.exe: *** [cmTC_62e58/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 "C:/Users/姣曚竴鑸�/CLionProjects/untitled5/cmake-build-debug/CMakeFiles/CMakeOutput.log".
See also "C:/Users/姣曚竴鑸�/CLionProjects/untitled5/cmake-build-debug/CMakeFiles/CMakeError.log".
[Failed to reload] 展开
-- The C compiler identification is GNU 6.3.0
-- The CXX compiler identification is GNU 6.3.0
-- Check for working C compiler: E:/WinGW/bin/gcc.exe
-- Check for working C compiler: E:/WinGW/bin/gcc.exe -- broken
CMake Error at C:/Program Files/JetBrains/CLion 2018.3.1/bin/cmake/win/share/cmake-3.13/Modules/CMakeTestCCompiler.cmake:52 (message):
The C compiler
"E:/WinGW/bin/gcc.exe"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: C:/Users/姣曚竴鑸�/CLionProjects/untitled5/cmake-build-debug/CMakeFiles/CMakeTmp
Run Build Command:"E:/WinGW/bin/mingw32-make.exe" "cmTC_62e58/fast"
E:/WinGW/bin/mingw32-make.exe -f CMakeFiles\cmTC_62e58.dir\build.make CMakeFiles/cmTC_62e58.dir/build
mingw32-make.exe[1]: Entering directory 'C:/Users/姣曚竴鑸�/CLionProjects/untitled5/cmake-build-debug/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_62e58.dir/testCCompiler.c.obj
E:\WinGW\bin\gcc.exe -o CMakeFiles\cmTC_62e58.dir\testCCompiler.c.obj -c C:\Users\濮f洑绔撮懜鐚廋LionProjects\untitled5\cmake-build-debug\CMakeFiles\CMakeTmp\testCCompiler.c
gcc.exe: error: C:\Users\濮f洑绔撮懜鐚廋LionProjects\untitled5\cmake-build-debug\CMakeFiles\CMakeTmp\testCCompiler.c: No such file or directory
gcc.exe: fatal error: no input files
compilation terminated.
CMakeFiles\cmTC_62e58.dir\build.make:64: recipe for target 'CMakeFiles/cmTC_62e58.dir/testCCompiler.c.obj' failed
mingw32-make.exe[1]: *** [CMakeFiles/cmTC_62e58.dir/testCCompiler.c.obj] Error 1
mingw32-make.exe[1]: Leaving directory 'C:/Users/姣曚竴鑸�/CLionProjects/untitled5/cmake-build-debug/CMakeFiles/CMakeTmp'
Makefile:120: recipe for target 'cmTC_62e58/fast' failed
mingw32-make.exe: *** [cmTC_62e58/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 "C:/Users/姣曚竴鑸�/CLionProjects/untitled5/cmake-build-debug/CMakeFiles/CMakeOutput.log".
See also "C:/Users/姣曚竴鑸�/CLionProjects/untitled5/cmake-build-debug/CMakeFiles/CMakeError.log".
[Failed to reload] 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询