Good afternoon friends! Recently I downloaded and installed IDE from JetBrains CLion for C / C ++, installed CMake, MinGW, but I still get an error that there is no C compiler.

Screen clion

Help please configure IDE.

    3 answers 3

    Press Ctrl + Shift + A , write Toolchains . In the appeared window you register paths to cmake and the compiler.

    • My ways are all set, but the error is still there. I laid out the screen, there is marked that there is CMake v 3.1.1 - El Salvadore
    • perhaps the paths are incorrectly spelled out, and perhaps this is because mingw. from the usual cmake / gcc console starts? - KoVadim
    • In the console via gcc, I compiled, I haven’t tried cmake, I haven’t had a chance to work with it, I compile gcc main.c -o main projects inside the IDE in the terminal and so on. It works this way, but I want to automatically work through IDE, I’m looking for it, then I need it and I can code it in a notebook with such success. - El Salvadore
    • CMAKE_MAKE_PROGRAM-NOTFOUND CMAKE_SH-NOTFOUND errors in the tab Cache - El Salvadore
    • on Linux start up on the floor kick. And on Windows ... Can they (JetBrains) write in support? - KoVadim

    Mingw

    Downloading packages for example as in the screenshot. You specify the path to the compiler folder itself. The only thing that noticed it was that COMODO Firewall blocked access ... Perhaps it is not the only one.

      I have linux mint 17.3 cinnamon had the same problem ... I solved it this way I downloaded the CMake of the correct version from the site's site and dropped it into the Clion / bin / cmake folder (Clion pulled it right away but there was a problem with GDB) that linux mint 17.3 is based on ubunt 14.04 if I'm not mistaken, and there is still an old version of GDB, corrected by the fact that the GDB upgrade to 7.8 after reboot and it all worked.

      enter image description here