C语言 Orwell 的 MinGW 和 TDM Dev-C++ 版本有什么区别?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/21980774/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-02 10:48:50  来源:igfitidea点击:

What is the difference between Orwell's MinGW and TDM Dev-C++ versions?

cmingwwindows-8.1tdm-mingw

提问by MaXiMkA

I am a newbie at this and yesterday I installed Win 8.1 x64 so I would like to use the most suitable program for making my tasks in C/C++. Thanks

我是这方面的新手,昨天我安装了 Win 8.1 x64,所以我想使用最合适的程序在 C/C++ 中完成我的任务。谢谢

回答by ollo

MinGWsupports only 32 bitbinaries, TDMsupports 32and 64bit binaries (with usage of MinGW's API's).

MinGW仅支持32 位二进制文件,TDM支持32位和64位二进制文​​件(使用 MinGW 的 API)。

  • If you need a good GCC for Windows, with the drawback of 32 bit only, use MinGW.
  • If you want to build 64 bit binaries too, you canuse TDM.
  • 如果您需要一个适用于 Windows 的良好 GCC,只有 32 位的缺点,请使用MinGW
  • 如果您也想构建 64 位二进制文​​件,您可以使用TDM

Both released GCC 4.8 approximately at the same time, so there's no real difference in up-to-dateness.

两者几乎同时发布了 GCC 4.8,因此在最新性上没有真正的区别。

My recommendation:Use the 3rd alternative: MinGW-w64instead - it's a extendedMinGW with support for 64 Bit. See herefor a short description of MinGW-w64.

我的建议:使用第三个替代方案MinGW-w64- 它是支持 64 位的扩展MinGW。有关MinGW-w64 的简短说明,请参见此处

Whatever choice you make, better use official developers website for downloading (not Orwell's) to get most up-to-date version.

无论您做出何种选择,最好使用官方开发者网站进行下载(而不是 Orwell 的)以获取最新版本。

Btw., you'll find a good overview there, what makes one special about the others.

顺便说一句,你会在那里找到一个很好的概述,是什么让其他人与众不同。

NB: the homepage of mingw-w64 used to be on sourceforge but is now at http://mingw-w64.org; links have been updated accordingly.

注意:mingw-w64 的主页曾经在 sourceforge 上,但现在位于http://mingw-w64.org;链接已相应更新。

回答by jiggunjer

For those interested in 32-bit binaries:

对于那些对 32 位二进制文​​件感兴趣的人:

Note the code::blocks IDE comes with MinGW, but the compiler is the 32-bit version of TDM-GCC. The TDM version has static runtime linkage by default which makes executables portable to systems without MinGW installed. The TDM-gcc compiler also seems to implement the latest gcc version faster than the other projects.

注意 code::blocks IDE 带有 MinGW,但编译器是 TDM-GCC 的 32 位版本。默认情况下,TDM 版本具有静态运行时链接,这使得可执行文件可移植到未安装 MinGW 的系统中。TDM-gcc 编译器似乎也比其他项目更快地实现最新的 gcc 版本。

The MinGW distribution also doesn't use posix emulation to access threads in Windows (unlike MinGW64 or TDM64). There is a separate download source for the headers providing C++11 compliant and functionality for MinGW.

MinGW 发行版也不使用 posix 仿真来访问 Windows 中的线程(与 MinGW64 或 TDM64 不同)。头文件有一个单独的下载源,为 MinGW 提供 C++11 兼容和功能。