给一支烟 2020-03-04 22:29 采纳率: 0%
浏览 862

Clion添加MinGW报错,路径无中文,求大神帮忙

"C:\Program Files\JetBrains\CLion 2019.3.1\bin\cmake\win\bin\cmake.exe" -DCMAKE_BUILD_TYPE=Debug -G "CodeBlocks - MinGW Makefiles" C:\Users\Lenovo\CLionProjects\untitled
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- Check for working C compiler: C:/MinGW/bin/gcc.exe
CMake Error: Generator: execution of make failed. Make command was: C:/MinGW/bin/mingw32-make.exe cmTC_67f3e/fast &&
-- Check for working C compiler: C:/MinGW/bin/gcc.exe -- broken
CMake Error at C:/Program Files/JetBrains/CLion 2019.3.1/bin/cmake/win/share/cmake-3.15/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: C:/Users/Lenovo/CLionProjects/untitled/cmake-build-debug/CMakeFiles/CMakeTmp

Run Build Command(s):C:/MinGW/bin/mingw32-make.exe cmTC_67f3e/fast && Exit code 0xc0000135

Generator: execution of make failed. Make command was: C:/MinGW/bin/mingw32-make.exe cmTC_67f3e/fast && 

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/Lenovo/CLionProjects/untitled/cmake-build-debug/CMakeFiles/CMakeOutput.log".
See also "C:/Users/Lenovo/CLionProjects/untitled/cmake-build-debug/CMakeFiles/CMakeError.log".

[Failed to reload]

  • 写回答

1条回答 默认 最新

  • HappyXiYue 2022-03-16 10:46
    关注

    请问解决了吗,遇到同样问题?

    评论

报告相同问题?

悬赏问题

  • ¥20 Cotex M3的调试和程序执行方式是什么样的?
  • ¥20 java项目连接sqlserver时报ssl相关错误
  • ¥15 一道python难题3
  • ¥15 用matlab 设计一个不动点迭代法求解非线性方程组的代码
  • ¥15 牛顿斯科特系数表表示
  • ¥15 arduino 步进电机
  • ¥20 程序进入HardFault_Handler
  • ¥15 oracle集群安装出bug
  • ¥15 关于#python#的问题:自动化测试
  • ¥20 问题请教!vue项目关于Nginx配置nonce安全策略的问题