小白在用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]
展开
 我来答
深邃且惬意的帮手W
2018-12-15
知道答主
回答量:48
采纳率:25%
帮助的人:18.1万
展开全部
和乐途哪个好
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
帐号已注销
2018-12-15 · TA获得超过172个赞
知道小有建树答主
回答量:427
采纳率:68%
帮助的人:94.2万
展开全部
看路径中的乱码,你编写程序的文件存储路径中不要有中文
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
收起 2条折叠回答
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式