Ichilo
Ichilo

Reputation: 69

CLion Custom toolchain can't find MinGW from msys2

I recently installed the 64 bit MinGW toolchain from MSYS2 and have added it to my windows system PATH.

windows terminal g++ version check

However, when I try to add it to Clion, it says that it can't find it even though I have specified the correct path.

clion toolchain configuration

Does anyone know what went wrong?

Upvotes: 2

Views: 1056

Answers (1)

Ichilo
Ichilo

Reputation: 69

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

from: https://stackoverflow.com/a/71218465/12557703

Upvotes: 4

Related Questions