1. Download
Click here to enter the official website to download the latest version of MinGW. (The Windows 32-bit is downloaded here, but all MinGW software will be executed on the 64-bit Windows platform, so 32-bit and 64-bit are the same.)
2. Installation
1. After the download is complete, double-click the program to install it;
2. Click 【Install】;
3. Click 【continue】;
4. Wait here, wait for it to install to 100%,
5. Check [mingw32-base-bin] and [mingw32-gcc-g++-bin] respectively to support C and C++. If you need other development environments, you can check them yourself;
6. Click [Apply Changes] in [Installation] in the upper left corner;
7. Click【Apply】;
8. Click 【Close】to complete.
3. Environment configuration
1. Open [Advanced System Settings];
Desktop computer - click [My Computer] -> [Properties] -> [Advanced System Settings] in turn;
Laptop - click [About] -> [Advanced System Settings] in the settings, or you can directly search for [View Advanced System Settings] in the search box of the settings;
2. Click [Environment Variables] in the pop-up box;
3. Find [Path] in [System Variables], select it, and click [Edit];
4. In the edit box that pops up, [Create] an environment variable C:\MinGW\bin , and click [Success];
[Note: The default installation path is used here, but if you changed the installation path in the above installation step 3 , you need to find the installation path you changed yourself. 】
5. Click [OK];
6. Click [OK] to complete.
8. Verify whether the environment variable is successfully configured——open the [cmd] command line window, enter gcc -v , and press Enter. If the installed version of MinGW is displayed, the configuration is successful. (If there is a problem, most of the configured environment variables are wrong, please check your configuration path carefully.)