[linux]GCC G++官方源码国内下载地址汇总

【GCC介绍】
GCC(GNU Compiler Collection,GNU编译器套件)是由GNU项目开发的一套编程语言编译器,也是GNU计划的关键部分。它最初作为GNU C Compiler(GNU C语言编译器)出现,但随着时间的推移,GCC迅速扩展,现已支持C、C++、Objective-C、Java、Ada和Go等多种编程语言。GCC是一个可移植的编译器,能够在多种硬件平台(如ARM、X86等)上运行,并支持跨平台交叉编译,即在一个平台上编译程序,在另一个平台上运行。

GCC以其模块化设计著称,可以灵活地加入对新语言和新CPU架构的支持。它是自由软件,遵循GPL及LGPL许可证,任何人都可以自由使用、修改和分发GCC。GCC在自由软件和开源社区中发挥着重要作用,是许多项目(包括GNU/Linux操作系统)的标准编译器。

GCC的编译过程包括预处理、编译、汇编和链接四个阶段,能够将源代码转换成计算机可以直接执行的二进制文件。通过命令行选项,用户可以控制GCC在编译过程中的各种行为,如选择C语言标准、优化等级等。

综上所述,GCC是一个功能强大、灵活且广泛应用的编译器套件,对于软件开发人员来说是一个不可或缺的工具。
【源码汇总】

版本下载地址
gcc-14.2.0.tar.gz点我下载
gcc-14.1.0.tar.gz点我下载
gcc-13.3.0.tar.gz点我下载
gcc-13.2.0.tar.gz点我下载
gcc-13.1.0.tar.gz点我下载
gcc-12.4.0.tar.gz点我下载
gcc-12.3.0.tar.gz点我下载
gcc-12.2.0.tar.gz点我下载
gcc-12.1.0.tar.gz点我下载
gcc-11.5.0.tar.gz点我下载
gcc-11.4.0.tar.gz点我下载
gcc-11.3.0.tar.gz点我下载
gcc-11.2.0.tar.gz点我下载
gcc-11.1.0.tar.gz点我下载
gcc-10.5.0.tar.gz点我下载
gcc-10.4.0.tar.gz点我下载
gcc-10.3.0.tar.gz点我下载
gcc-10.2.0.tar.gz点我下载
gcc-10.1.0.tar.gz点我下载
gcc-9.5.0.tar.gz点我下载
gcc-9.4.0.tar.gz点我下载
gcc-9.3.0.tar.gz点我下载
gcc-9.2.0.tar.gz点我下载
gcc-9.1.0.tar.gz点我下载
Installing c++/g++ on Windows Disclaimer: This page is being maintained mainly for my students. Use these instructions at your own risk. There is no warranty in any form or shape whatsoever!. There is no guarantee that these instructions are up-to-date. With that understood you may continue with the rest of this page if you choose to accept these terms. This page was last updated on September 13, 2005, but still good as of April 30, 2009. Follow these steps to install g++ (the GNU C++ compiler) for Windows. There is no room for creativity here; you must follow the directions exactly. Pick the drive and a folder in which you want to install g++. I'll assume that it is C:, but you can choose a different one. If you choose a different drive or a different folder, you'll need to adapt the directions below accordingly. Download full.exe, an about 14 megabyte executable, to C:\full.exe by right-clicking on the link. Use Save Link As... or Save Target As... Be sure the browser saves the file as C:\full.exe. Run the downloaded executable. This will install g++ (and a lot of other things that you don't really need) on your hard drive. Go to the C: drive using Windows Explorer and double-click on full.exe. Or, open a DOS window (Start > Programs > Command Prompt), connect to the C: drive using the cd command, and type full. Locate where the bin folder was created for the g++ installation. On my Windows XP machine, it was created in the following path: C:\cygnus\cygwin-b20\H-i586-cygwin32\bin You now should add it to the PATH environment variable. You do that by following: Start -> Control Panel -> System -> Advanced -> Environment Variables At this point you can see the PATH variable either in the User Variables or in the System Variables. Add the g++ path into the PATH variable. You add it to the end of the existing value separated by a semicolon (';'). Make sure that you do not lose the original value. You are just appending more to the end separated by a semicolon. Restart your computer. A Cygnus Solutions entry will appear in your Programs menu, and an icon may appear on your desktop. Don't use them! You will use it using the g++ command on a DOS prompt as explained below. You should now be able to run g++ from a DOS (Command Prompt) window. For example, to compile a file called C:\mine\hello.cpp, connect to the C:\mine folder and enter g++ -g hello.cpp -o hello -lm You'll then be able to run the compiled program by entering hello in the DOS window. If you've installed Emacs as described here, you will also be able to run g++ from Emacs. If, when you do this, Emacs tries to compile with the command make -k, you made a mistake during the Emacs installation. If you want to learn how to run g++ on emacs, see here. If you'd like to learn more about where this free compiler came from, we downloaded it from an older site of http://sourceware.org/cygwin/. If you wish to clean up a little, you may delete the file: full.exe at this point. Your g++ compiler is installed under C:\cygnus.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

FL1623863129

你的打赏是我写文章最大的动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值