MinGW: Installation in 2022

 

MinGW


Hello everyone, today we will install the MinGW installer and compiler in the perfect way so you can run your C or C++ code quickly without any errors.


Before I have already discussed a MinGW compilation problem and many people found that very useful, you must check this if you have the same problem Access-denied-in-vs-code-for-gcc


So let's start, there are two things we have to understand, first there is a MinGW installer and a MinGW compiler.

First, install the MinGW installer from this link: MinGW-Installer

After downloading click on the installer and it looks like this

MinGW-Installer



After installation, we have to install compilers, so follow the below images :

Compiler


As you will land on this page, now select only the selected ones in the image, and on the top-left, you can see an installation button, click on it and install these packages.

Now we have to set the path for the MinGW so that our IDE and PC can recognize the compiler.

Follow these steps

File Manager > Windows(C:) > MinGW > bin

Now copy the address by clicking on the top bar for the folder address.

Bin-path


Now follow these steps to set environment variables:

Search Environment Variables in your PC > environment variables > path > edit path > new path > copy the MinGW path > and save rest of the things

Environment-Variables


save-path



It's maybe overwhelming but once you set up the whole thing perfectly it will be really easy for you.

If you find it helpful make sure to share and support this blogging website.

Till then keep coding, keep learning 


Comments

Popular posts from this blog

C program to find the greatest of three numbers with user input.

How to add to integers in C programming

Check whether a character Vowel or Consonant