C/C++ download installation and environment variable configuration

Table of contents

1. Open the MinGW official website (click to enter the official website)

2. Double-click to install

3. Enter the interface of installing MinGW configurator

4. Configure the Path environment variable

5. Open the command line window for testing


1. Open  the MinGW official website (click to enter the official website)

Download the MinGW installation package

2. Double-click to install

The installation process is the same as installing normal software, if you need to change the path, change it, and wait patiently for the installation to complete

3. Enter the interface of installing MinGW configurator

Check the 2 items marked in the picture

 Then wait patiently until the installation is successful, then you can close this interface

Note: During the entire installation process, it may be prompted that some components have failed to download, but it does not matter. When needed later, you can manually select the specified installation package for installation through the "All Packages" option in the MinGw Installer installation interface.

4. Configure the Path environment variable

Right-click Computer (My Computer) -> Properties -> Advanced System Settings -> Environment Variables

Add the MinGW installation path to the PATH environment variable

 

5. Open the command line window for testing

Enter  gcc -v 和 g++ -v the command, if the specific information of the compiler is output, it means that the configuration is successful

Guess you like

Origin blog.csdn.net/m0_62808124/article/details/126919203