Clion MinGW之The C compiler "MinGW/bin/gcc.exe" is not able to compile a simple test program.

在安装Clion后配置MinGW环境时,gcc.exe显示有错误。

查看到类似以下内容(当时忘记记录了,这是某位提问者的提示):



    -- 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_87f99/fast"
    -- Check for working C compiler: C:/MinGW/bin/gcc.exe -- broken
    CMake Error at C:/Program Files/CMake/share/cmake-3.12/Modules/CMakeTestCCompiler.cmake:52 (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/鍙惰惤鐭ョ/AppData/Local/Temp/cmake_check_environment/_build/CMakeFiles/CMakeTmp

    Run Build Command:"C:/MinGW/bin/mingw32-make.exe" "cmTC_87f99/fast"
    Exit code 0xc0000135

    Generator: execution
评论 9
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值