CLion does not detect make, C-compiler and c++ compiler (MinGW-64)
Completed
The "Environment" is detected, it also has a "bin" directory, containing "gcc.exe", "g++.exe" and "make.exe", however those are listed as not detected. How can I fix this?
Best Regards
Please sign in to leave a comment.
Do you have c:\blahblahpathto\MinGW-w64\bin in your system variables. Some installations add it as part of the install, some seem not to. I think it is necessary for CLion to find the environment. Open up system environment variables, and check if it's there. On my system it is C:\TDM-GCC-64\bin
Hi,
Thanks! I tried putting it in the Path System variable, but that did not help. The compiler was installed using msys2 (https://github.com/msys2) and its package manager.
I then installed using an official MinGW setup file and that one works.
@E0826564, to your comment, if you want to use MSYS2 and pacman again in the future, you just need to download the mingw-w64 toolchain using pacman.
`pacman -S mingw-w64-x86_64-toolchain`
Ref: https://intellij-support.jetbrains.com/hc/en-us/community/posts/206617629/comments/207603679