'Clion not recognizing Toolset mingw64

Here is my configuration for Clion

enter image description here

Here is what is in the C:\msys64 directory

enter image description here

Here is what is included in the C:\msys64\mingw64 directory enter image description here

All these packages are installed by MSYS



Solution 1:[1]

According to the issue CPP-28457 on JetBrains YouTrack, it seems that an update of MinGW headers broke CLion's ability to detect MSYS2's MinGW.

An reply provides a temporary fix by making an soft link.

You can try making a symbol link with an elevated PowerShell under the instructions by, for example, Create Symbolic Link with PowerShell:

  • Open an elevated PowerShell
  • Change directory to <MSYS2_INSTALL_DIR>/mingw64/x86_64-w64-mingw32
  • Making a link by typing: New-Item -ItemType SymbolicLink -Path ./include -Target ../include

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 henry_23