MinGW installation tutorial (MinGW, mingw installation tutorial)
First, describe
1) MinGw is only one of the installation programs in the GCC compiling environment, and it is similar to Cygwin;
2) install MinGw in a better network environment,
(It may cause failure when other software such as OMNeT ++ is installed later ),
(Of course, you can also manually install it on your own, that is, what you need to download and then install it, which is equivalent to installing the offline version. For details, refer to the instructions on the official website, if you do not know what to download, use the online version for installation)
1. First download the installation package and click open. The installation interface of my version is roughly like this:
There is nothing to say about this. Of course, this step is not actually the installation program;
2. Follow the instructions in the previous step to continue the next step. After completion, a window is automatically displayed, called MinGW Installation Manager, which is like this:
Select basic Setup on the Left bar, and then select it on the right. (It seems that you can select GCC and G ++, But I have selected all the options in Basic Setup ), right-click Mark for Installation.
After the selection, click Installation --> apply change on the menu bar, and then let it automatically download and install it. It is installed while downloading, so it is best to select an environment with better network performance for Installation,
After the installation is successful, it should look like this:
That is to say, all the icons are converted into fill styles. Which of the other icons is not fill styles? (that is, they are not completely installed. Just install them separately)
3. After the above steps are completed, configure the environment variable and configure the bin folder (for example, D: \ MinGW \ bin) of the MinGW installation Path in the Path environment variable, like this:
In this way, you can enter gcc-v in CMD. If the gcc version information appears, rather than the gcc command cannot be found, the installation is complete.