The second day of learning C language
1.
Download MinGW
As shown in the figure below, click the red cutting head to download migw-get-setup.exe (86.5kB)
2. Install MinGW
Open the downloaded software
Select Install and wait (the computer needs to be connected to the Internet at this time)
3. After downloading the gcc
installation, click "continue" to open the MinGW Installation Manager.
As shown in the figure, right-click on the line containing the word gcc, select "Mark for Installtion"
and, select "Installtion" -> "Apply Changes"
and then click "Apply" to confirm the operation
Finally , click "Close" to close after confirming that the installation is complete dialog
installation, click "continue" to open the MinGW Installation Manager.
As shown in the figure, right-click on the line containing the word gcc, select "Mark for Installtion"
and, select "Installtion" -> "Apply Changes"
and then click "Apply" to confirm the operation
Finally , click "Close" to close after confirming that the installation is complete dialog
4. Configure environment variables
Open "System Properties" -> "Environment Variables
", select "Path" in "System Variables" and click "Edit",
click "New", and enter "C:\MinGW\bin" (if you change it yourself Please modify the path here according to the installation path of MinGW)
Then, click "OK" to close all dialog boxes.
Open "System Properties" -> "Environment Variables
", select "Path" in "System Variables" and click "Edit",
click "New", and enter "C:\MinGW\bin" (if you change it yourself Please modify the path here according to the installation path of MinGW)
Then, click "OK" to close all dialog boxes.
Restart the computer! ! ! !
There is one thing to note here: win10 needs to be added to "Path" in "User Variables". Double-click "Path" to add it , create a new one, and enter "C:\MinGW\bin" without adding "%". Reboot, if
checking gcc fails, reboot.
5. Check whether gcc is installed successfully.
Win+R (open and run),
enter "cmd" and
type "gcc -v".
If the situation as shown in the figure appears, the installation is successful.
Win+R (open and run),
enter "cmd" and
type "gcc -v".
If the situation as shown in the figure appears, the installation is successful.