Create a GCC compiling environment in Windows

Source: Internet
Author: User

Visual Studio is getting bigger and bigger, with too many things unrelated to the Standard C ++, sometimes just thinking about a small program, but starting a stupid and heavy IDE, it is really inconvenient. Installing vs also takes considerable time and disk space.

In addition to vs, we have many other options:Mingw,Cygwin, Dev CPP, codeblocks, and minw studio. Some of them are IDE. I choseMingw:

1. As Hou Jie said,"Use C/C ++ compiler in Console mode"

2. mingw is a famous CompilerGccSo all the experience in the compiler can be applied to the Linux platform. For me, I am used to using makefile in Linux to control the compilation process, so these experiences can be used on Windows platforms.

3. msys in minw can build a shell similar to Linux, so that almost all Linux commands can be applied in windows.

4. Unlike cygwin, the executable files compiled by minw can run on windows without relying on any library files. Cygwin depends on cygwin. dll.

Next, let's start installing minw.HereIs getting started of minw. If your e file is not very good, please refer to the following installation steps:

1. InHereDownload and run the installation file. The following components are available for installation:

A. mingw base tools: some basic binary programs of mingw, C compiler, and platform API

B .... Compiler. If you only need to compile C ++, select the G ++ compiler.

C. mingw make is the port of make in Linux. We recommend that you choose

Do not select a space Path for installation.

2. Install msys and clickHereDownload. The post install script of msys is executed in the last step of installation. Select the msys directory you have installed, so that mingw will be mounted to/mingw. We can also use the GCC compiler in msys. If you do not know, read the README after installation.

Open msys, and our programming work can be expanded here.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.