CLion 新建c++项目报错解决方法

在使用CLion新建C++项目时遇到编译错误,原因是项目路径包含中文字符。CMake在配置项目时无法正确处理,导致编译失败。解决方案是将项目移至无中文字符的路径下。
摘要由CSDN通过智能技术生成

“C:\Software\CLion 2017.1.1\bin\cmake\bin\cmake.exe” -DCMAKE_BUILD_TYPE=Debug -G “CodeBlocks - MinGW Makefiles” C:\Users\让生活多一点惊喜\CLionProjects\myCpp
– The C compiler identification is GNU 4.9.2
– The CXX compiler identification is GNU 4.9.2
– Check for working C compiler: C:/Software/mingw64/bin/gcc.exe
– Check for working C compiler: C:/Software/mingw64/bin/gcc.exe – broken
CMake Error at C:/Software/CLion 2017.1.1/bin/cmake/share/cmake-3.7/Modules/CMakeTestCCompiler.cmake:51 (message):
The C compiler “C:/Software/mingw64/bin/gcc.exe” is not able to compile a
simple test program.
It fails with the following output:
Change Dir: C:/Users/璁╃敓娲诲涓�鐐规儕鍠�/CLionProjects/myCpp/cmake-build-debug/CMakeFiles/CMakeTmp
Run Build Command:”C:/Software/mingw64/bin/mingw32-make.exe” “cmTC_9dba3/fast”
C:/Software/mingw64/bin/mingw32-make.exe -f
CMakeFiles\cmTC_9dba3.dir\build.make CM

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值