Search code examples
mingwclionmingw-w64msys2

Clion cannot find MinGW


Clion just cannot find MinGW even I properly set right path.
Someone ask me to post image of C:\msys64 folder. It used to work fine. But at some point it didn't work. Maybe after I upgraded MinGW or Clion. enter image description here

enter image description here

enter image description here

enter image description here


Solution

  • There is a temporary fix available for mingw-w64-i686-gcc, mingw-w64-ucrt-x86_64-gcc, mingw-w64-x86_64-gcc 11.2.0-9: See this youtrack issue.

    FYI, it is possible to workaround the problem with

    cd msys[2,64]/[ucrt64|mingw64]/x86_64-w64-mingw32

    cd msys[2,64]/mingw32/i686-w64-mingw32

    mklink /D include ../include

    Modified Quote from Arnaud Dovi