How to run C language code on JetBrains CLion

I get the following error:

Error: neither MinGW nor Cygwin selected

Do you have an idea to solve this problem?

+7
c clion
source share
2 answers

To develop the answer provided by "uta", you need either MinGW or Cygwin to compile your code. MinGW can be obtained here: MinGW

Or Cygwin from here: Cygwin

For simplicity, I will describe MinGW. Install MinGW, then go to CLion like this:

File → Settings → Build, Run, Deploy → Toolchains

And select the directory where MinGW is installed. In my opinion, the default on Windows is C: \ MinGW. Once you do this, CLION scans the directory and detects it.

If you have already installed them, you only need to select the folders in which they are installed in CLion.

Hope this helps.

+14
source share

Please start with the menu: File | Settings ... | Assembly, execution, ... | Tool Chains | Environment:

+1
source share

All Articles