CLion 自定义工具链无法从 msys2 中找到 MinGW

CLion Custom toolchain can't find MinGW from msys2

我最近从 MSYS2 安装了 64 位 MinGW 工具链,并将其添加到我的 windows 系统路径中。

windows terminal g++ version check

但是,当我尝试将它添加到 Clion 时,它说即使我指定了正确的路径也找不到它。

clion toolchain configuration

有人知道哪里出了问题吗?

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

来自: