Install under Windows, configure the GCC compiler

Source: Internet
Author: User

to use the GCC compiler under Windows:1. First introduce the next MinGW

MinGW is a compilation environment that uses only free software to generate pure Win32 executable files, which is minimalist GNU on Windows merchants.

In fact, MinGW is not a simple C + + compiler, but a set of GNU tools. In addition to GCC, MinGW also includes some other GNU program development tools (such as gawk bison, etc.).
The MinGW was developed to provide a GNU-compliant GNU working environment for those who do not like to work on the Linux (FreeBSD) operating system and remain in Windows.
So, with MinGW we can use GNU program development tools like Linux.
GCC is the core of MinGW, and GCC is a set of compiler systems that support a wide range of computer programming languages, and are closest to the standard in the implementation of language standards. And GCC has almost been able to migrate to all available computer platforms right now. (My computer is also equipped with Devkitpro, which includes GCC's ARM (for GBA/DS/GP32) and MIPS (for PSP) version numbers. )
GCC itself does not have an IDE interface like VC (the IDE that supports the MinGW compiler, such as Dev C + +, is also available on Windows). Source Editor You can choose whatever text editor you like (it is said that the developer of Microsoft includes VC not using the IDE editor with VC, but the GNU VIM editor). Then use tools such as make to compile, link, package, and even advertise the software project. And like the CVS (SVN) Source version number Control tool, people in any corner of the world can participate in software projects.


2. Download MinGW

One way is to download a mingw-2.0.0-3.exe to Sourceforge (http://sourceforge.net/project/showfiles.php?group_id=2435).

But I configured the time I installed the computer codeblocks, has brought the MinGW.


3. Configuration of environment variables

In (System Properties--advanced--environment variables--system variables) (The following folders vary depending on where your computer MinGW)

A. In the value of path add? " C:\Program Files\mingwstudio\mingw\bin ". This is the path to find the GCC compiler. Suppose there is something else in the path that needs to be cut in the English state semicolon

B. Create a new Library_path variable and add it to its value? " C:\Program Files\mingwstudio\mingw\lib ". This is the path to the standard inventory drop.

C. Create a new C_include_path variable and add it to its value? " C:\Program files\mingwstudio\mingw\include ". This is the path to the include lookup header file.


4. Verify that GCC is performing properly

Under the CMD console form, enter Gcc-v. If the installation is successful, the GCC version number information is displayed.


Install under Windows, configure the GCC compiler

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.