Today we’re going to find out how to install MinGW C/C++ Compiler in Windows 11.
With the help of MinGW Compiler, you can write C/C++ programs.
Step 1: Download MinGW C/C++ Compiler for Windows 11
1) Firstly we will download the C/C++ compiler for our windows machine and for that we’re going to download the “MinGW” compiler. Click the download link provided below.
Download MinGW Compiler Here: MinGW C/C++ For Windows 11 32/64 bit
Step 2: Extract MinGW in Windows 11
1) Once your download gets finished open it from the folder where it has been downloaded and double click on it to start the installation process.
2) Now you’ll be asked to choose the extraction location of the compiler, in the text field type C:\ and click on the extract button. Extraction of this archive will take some time so keep patience.
2) Now, open up the properties of your windows machine and click on the Advanced System Settings button.
3) Click on the environment variable button.
4) Now, select the path variable by simply clicking on it. And click on the edit button to add the environment variables.
5) Now click on the New button and paste the location we’ve copied from step 3.1 in this blank field and click ok.
Step 4: Check Installed G++ Version
1) Open Up the command prompt, type g++ –-version , gcc --version and press enter.
If you’re able to get similar output to the above image then congrats you’ve successfully installed MinGW Compiler in your windows 11.