在哪里可以下载适用于 Windows 的 GCC 二进制文件?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2682762/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Where can I download GCC binaries for windows?
提问by Motti
I want to play around with GCC 4.5 but on GCC'ssite it says that they don't supply binaries. I think downloading the source and building GCC from scratch is a bit of overkill (even if the OS I'm using (Windows) is rather obscure).
我想使用 GCC 4.5,但在GCC 的网站上,它说他们不提供二进制文件。我认为下载源代码并从头开始构建 GCC 有点矫枉过正(即使我使用的操作系统(Windows)相当模糊)。
Where can I download GCC 4.5 for Windows?
在哪里可以下载 Windows 版 GCC 4.5?
(I don't want all of Cygwin, just GCC)
(我不想要所有的 Cygwin,只想要 GCC)
采纳答案by milou
try tdm-gcc for windows http://tdm-gcc.tdragon.net/download
尝试 tdm-gcc for windows http://tdm-gcc.tdragon.net/download
回答by Tobias Kienzler
回答by Gabriel
Download gcc free binary builds for different architectures here http://www.comsytec.com/products/gnu-binaries/gcc-binaries.html
在此处下载适用于不同架构的 gcc 免费二进制构建http://www.comsytec.com/products/gnu-binaries/gcc-binaries.html
回答by Jon
I strongly recommend the binaries from MinGW-builds, they are just so full of win:
我强烈推荐MinGW-builds的二进制文件,它们充满了胜利:
- Prompt builds of the latest GCC versions.
- Binaries for both 32 and 64-bit hosts are available.
- Both kinds of binaries can target 32 and 64-bit platforms (to produce 32-bit compiles from the 64-bit binaries use
-m32
; for the converse,-m64
). - Both kinds of binaries are available with your choice of POSIX or win32 threading models.
- You also get to choose between exception handling implementations: DW2 or SJLJ for 32-bit binaries and SEH or SJLJ for 64-bit binaries.
- 提示构建最新的 GCC 版本。
- 32 位和 64 位主机的二进制文件都可用。
- 这两种二进制文件都可以针对 32 位和 64 位平台(要从 64 位二进制文件生成 32 位编译,使用
-m32
; 反之,-m64
)。 - 您可以选择 POSIX 或 win32 线程模型来使用这两种二进制文件。
- 您还可以在异常处理实现之间进行选择:DW2 或 SJLJ 用于 32 位二进制文件,SEH 或 SJLJ 用于 64 位二进制文件。
For more information on the above and an evaluation of lots of prebuilt binary sources, check this pagefrom the Qt wiki so that you can judge on your own. If you do decide on MinGW-builds, start browsing for your binaries here.
有关上述内容的更多信息以及对许多预构建二进制源的评估,请查看Qt wiki 中的此页面,以便您可以自行判断。如果您决定使用 MinGW 构建,请在此处开始浏览您的二进制文件。
回答by Macmade
http://gcc.gnu.org/install/binaries.html
http://gcc.gnu.org/install/binaries.html
Through MinGW or Cygwin, as GNU does not provide binaries.
通过 MinGW 或 Cygwin,因为 GNU 不提供二进制文件。
回答by cdg
Try here www.comsytec.comfor cross compilers and debuggers
在www.comsytec.com 上尝试交叉编译器和调试器