[Turn] installed MinGW in Windows

Install MinGW-w64 in Windows

Post Reply

For C compiler with Sublime Text 3 program, please refer to this site articles:  use Sublime Text 3 with MinGW-w64 compiled C language program

MinGW, full name Minimalist GNU for Windows, is the GCC compiler and GNU Binutils portable version of the Windows platform. MinGW-w64 originally its branches, and later became an independent project development. Since there are only MinGW-w64 is supported by GCC official, and MinGW already stopped updates, it is recommended to use MinGW-w64. This article describes how to install MinGW-w64 in Windows.

We will assume you installed MinGW-w64

D:\MinGW

If you change the configuration of the contents of the installation directory, the following environment variables should also be based on the actual change

A. MinGW-w64 installation

Visit the following link to download the installer:

https://sourceforge.net/projects/mingw-w64/files/latest/download

After the download is complete, open the installer

install-mingw-w64-on-windows-01

This window will appear Click Next, wait a moment to

install-mingw-w64-on-windows-02

Here you can choose to install the version recommended only change to the second x86_64, other options have not been altered

Here you can choose the installation directory, we assume that you installed

D:\MinGW

Click Next to start the download after installation

Wait for a moment that the installation is complete, click Next to complete the installation

II. Configuring environment variables

Join in the system variable Path

D:\MinGW\mingw64\bin

If you are using Windows 10, press the configuration shown in Fig.

If you are using the system prior to Windows 10, the configuration process is basically the same, only the last step is different

With Windows 7, for example, added at the beginning of the variable value of Path

D:\MinGW\mingw64\bin;

Please be careful not to ignore the ending semicolon (;), it will not only configuration can not take effect, and may create other problems.

Next, a new variable named C_INCLUDE_PATH the system, the value of the variable

D:\MinGW\mingw64\include

As shown below

You can also create a new system variable called CPLUS_INCLUDE_PATH for C ++, the same variable values.

You can open a command prompt window and execute the gcc command, verify the configuration is correct

install-mingw-w64-on-windows-10

If you are prompted with the same content on the map, is configured correctly. Otherwise, check your steps.

This entry was posted on June 21, 2016 . It belongs to C classification.

---------------------
Author: findumars
Source: CNBLOGS
Original: https://www.cnblogs.com/findumars/p/8289454.html
Disclaimer: This article author original article, reproduced, please attach Bowen link!

Guess you like

Origin www.cnblogs.com/shawnchou/p/11531244.html
Recommended