Skip to content
Related Articles
Open in App
Not now

Related Articles

Installing MinGW Tools for C/C++ and Changing Environment Variable

Improve Article
Save Article
  • Difficulty Level : Easy
  • Last Updated : 08 Dec, 2021
Improve Article
Save Article

MinGW is a native C/C++ compiler(GCC) which have free distributable import libraries and header files for building native Windows applications. In this tutorial, we are going to install MinGW for C/C++. These are a few steps that we have to perform to successfully install MinGW on our device. 

How to Install the MinGW Tools for C/C++?

Step 1: Go to the MinGW website and click on Download. It will start downloading in 5 seconds.


Step 2: Double click and open the exe MinGW file and click install. It will automatically start downloading all the setups for the MinGW. 
Step 3: After all of the setup click Continue. Now the MinGW installation manager will pop up.

MinGW installation manager

Step 4: In the installation manager right click on every option and then click Mark for Installation

Mark for installation

Step 5: In the Installation, option-click Apply changes. And then select Apply. It will start downloading all the files. It will take 5-6 minutes. After finishing click on Close. 

Apply changes

How to Change Environment Variables for MinGW

After successful installation of MinGW, next step is to change the environment location for MinGW.

Step 1:  Go to the C drive on your device and search for the MinGW folder. And in the MinGW folder go to the bin folder and copy its path.

Copy path

Step 2: Go to the control panel then go to System then Advanced system settings and then Environment variables. 

Go to control panel

Step 3: In the system variables search for path and then select Edit. Now add a new path to it by clicking New. Now paste the path and click ok. 

Edit path

This marks the complete installation of MinGW in the system.

My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!