Several C/C++ integrated development environments, such as CLion, VS Code, Codeblocks, etc., are available on the internet. But, if you are someone who loves to use JetBrains products, then CLion is for you. It is an IDE developed by JetBrains to run C/C++ programs. If you want to install CLion on your computer, then stick with me in this article. I guarantee you that CLion will be installed on your computer at the end of this article without any errors. Enough talk! Let’s get started:
Follow the below steps to install and set up CLion for C/C++ programming:
-
First of all, you need to download the MinGW compiler to compile your C/C++ programs.
-
Click here to download the MinGW compiler.
-
Install the MinGW compiler.
-
Now, add MinGW to the path by navigating to This PC→C:/→Program Files (x86)→MinGW-w64→i686-8.1.0-POSIX-dwarf-rt_v6-rev0→mingw32→bin.
Copy and paste the path in the environment variables. Right-click on This PC→Properties→Advanced System Settings→Environment variables.
-
Click on the path and then Edit→New. Paste the copied path here and click ‘ok.’
-
Click here to download the CLion IDE.
-
Install the .exe file, as shown in the below animation. Do not forget to check all the checkboxes shown in the below animation:
-
Reboot your computer at the time of installation, or you can reboot it later by clicking on “I want to manually reboot later.”
-
After rebooting your computer, type “CLion” on the Windows search bar and open the CLion IDE.
-
Click on “Do not import settings.”
-
If you have a license server or activation code, then you can easily activate it by entering them. Otherwise, you can use the trial version (free for 30 days).
-
Click on evaluate for free. Enter your email address if you want to subscribe to the CLion newsletter.
-
Click on the “Evaluate” button.
- Now, create a new project by clicking on the “Create New Project” button and click on “C Executable.”
- Enter the name and the location of the project and then click on the “Create” button.
Now you are all set to run C programs on CLion IDE without any interruptions. Let’s try to run a simple C program to check if everything is working correctly or not.
As you can see in the above animation, the C program is running perfectly. So, that’s how you can set up and run a C program in CLion IDE with ease. If you want to learn C programming in detail with notes for free, click here to watch my C programming tutorial.