Installation of the C + + compiler (MinGW)

Source: Internet
Author: User


Gnu

GNU is a free software project, and the GNU Project has developed a complete free software system that is known as "GNU" (The GNU is "not Unix") and is compatible with UNIX up-to-software systems.

http://www.gnu.org/

the difference between GCC and g++

Gcc:gnu Compiler collection that covers all the different languages supported by the GNU compiler.
Gcc:gnu C Compiler
G ++:gnu C + + compiler
GCC compilation:. c/.cpp files are used as C and C + + respectively.
G + + compile:. C/.cpp files, but they will all be treated as C + + files. In addition, if you use G + + to link to the target file, it is automatically linked to the STD C + + library (GCC does not).
GCC compiled c files have smaller predefined macros.
GCC compiled. CPP and g++ compiled *. c/.cpp files have some additional macros.

C + + compiler MinGW and Cygwin
    • MinGW only window platform, the window platform support is better, the compiler file relative Cygwin small.
    • Cygwin is a cross-platform, Support window platform principle is to map the UNIX API to the window API, so the compilation speed and file size is relatively large.
    • Recommended use of MinGW
MinGW official website After downloading, download the related package is very slow, almost all the download failed, not recommended to use.  There are two common versions of MinGW's compiled distributions: MinGW distro and TDM-GCC.     The MinGW distro contains the boost library, which is very handy without having to compile and be the latest library. Mingw-builds, go straight to the mingw-builds here just fine. The advantage is x86/x64, exception handling: Siji/dwarf, threading Model: Posix/win32 are relatively whole, their own to choose the right one, the disadvantage is that the version is a bit old, the highest to 4.8.1 but many times the Rev5.
http/nuwen.net/mingw.html The advantage is that the compiler is relatively new, and its own third-party library is rich, the disadvantage is not as many choices above, and only the x64 version.recommended use of MinGW distroclion ide Download URL http://www.jetbrains.com/clion/download/#section =windows-version activation Code: Http://blog.sina.com.cn/s/blog _a2a39c680102ww28.html copy all to Clion activationBuild Clion integrated development environment on Linux platform

1. Download

2. Decompression

3 CD Clion/bin

4,./clion.sh

Installation of the C + + compiler (MinGW)

Related Article

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.