Windows上的GCC:MinGW介紹

來源:互聯網
上載者:User

A collection of freely available and freely distributable Windows specific header files and import libraries combined with GNU toolsets that allow one to produce native Windows programs that do not rely on any 3rd-party C runtime DLLs.

MinGW全名Minimalist GNU for Windows,是一套用於Windows平台的GNU 工具集,實現了GNU的準系統,並使編譯後的程式無需第三方執行階段程式庫(DLL)便可在Windows系統上運行。

What is MinGW?

MinGW ("Minimalistic GNU for Windows") refers to a set of runtime headers, used in building a compiler system based on the GNU GCC and binutils projects. It compiles and links code to be run on Win32 platforms... providing C, C++ and Fortran compilers plus other related tools. If you see references to "mingw32" instead of "MinGW", they are referring to the same compiler system. The project's name changed from mingw32 to MinGW is to prevent the implication that MinGW will only works on 32 bit systems (as 64 and higher bit machines become more common, MinGW will evolve to work with them). MinGW uses the Microsoft runtime libraries, distributed with the Windows operating system. Unlike other ports of GCC to Windows, the runtime libraries are not distributed using Gnu's General Public License (GPL). You, therefore, do not have to distribute your source code with your programs unless, of course, you use a GPL library in your programs.
                            ——摘自MinGW官方首頁
                                      http://www.mingw.org/

 以下是用我蹩腳的英語翻譯的,如有不妥,請留言:

       MinGW涉及一整套的運行時標頭檔,用於建立一個基於GNU GCC的編譯系統並產生程式。MinGW編譯、串連運行在Win32平台上的代碼,提供C、C++和Fortran編譯器及相關工具。有些時候用“mingw32”代替“MinGW”,但都表示同一編譯系統。將“mingw32”改為“MinGW”是為了防止產生關於MinGW只能在32位windows上工作的誤解(隨著64及更高位的電腦的普及,MinGW將隨之發展以便能在這些機器上使用)。MinGW使用Microsoft的執行階段程式庫,在windows作業系統上分發。不同於其他GCC對Windows的介面,執行階段程式庫不會被GPL (GNU通用公用協議認證)分發。甚至你也不必公開你的程式原始碼(註:瞭解《GNU通用公用協議認證》可知,使用了該認證的程式在分發時會將原始碼一起分發,以體現“自由軟體”精神),當然,除非你使用了GPL庫。

MinGW各版本:
http://www.mingw.org/download.shtml   官方下載。
http://www.programarts.com/download/MinGW-3.0.0-1.exe 可直接在Windows下運行安裝的版本

有各種使用心得,歡迎與我聯絡,共同交流。
//---------------------------------------------------
//用得開心你就拍拍手,然後大喊一聲:“爽!”

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.