简体   繁体   English

迄今为止最稳定的 gcc/g++ 版本

[英]Most stable gcc/g++ version to date

I want to know which gcc/g++ version released is the most stable to date?我想知道发布的哪个 gcc/g++ 版本是迄今为止最稳定的? I had an impression that gcc version 2.95 was the most stable but a few peers told me that gcc 3.x versions are now the most stable.我的印象是 gcc 版本 2.95 是最稳定的,但一些同行告诉我 gcc 3.x 版本现在是最稳定的。

The 2.95 branch hasn't had an update in over ten years . 2.95 分支已经十多年没有更新了 I certainly wouldn't be using it for anything voluntarily.我当然不会自愿将它用于任何事情 Use whatever is the latest available for your system unless you have specific knowledge of a need to use something else (a vague "impression" is not specific knowledge, actual bugs and specific compatibility problems are).使用适用于您系统的最新版本,除非您对需要使用其他东西有特定的了解(模糊的“印象”不是特定的知识,实际的错误和特定的兼容性问题是)。

Even 3.x is rapidly aging.甚至 3.x 也在迅速老化。 There is no general reason not to use 4.x.没有一般理由不使用 4.x。

The only gcc versions that are actively worked on - ie debugged and stabilized are gcc-4.n where n > 3 these days.唯一积极工作的 gcc 版本 - 即已调试和稳定的是 gcc-4.n,其中 n > 3 这些天。 Use the gcc-4.* series.使用 gcc-4.* 系列。 Even cygwin and mingw are off gcc-3.* these days.这些天,甚至 cygwin 和 mingw 都关闭了 gcc-3.*。

GCC 4.6.2 has been released recently, on 27 Oct 2011. GCC 4.6.2最近于 2011 年 10 月 27 日发布。

And chosing a specific version of GCC is not a guarantee that your binary will work on all linux-es you want, because distributions may have different versions of the C++ standard libraries.并且选择特定版本的 GCC 并不能保证您的二进制文件可以在您想要的所有 linux-es 上运行,因为发行版可能具有不同版本的 C++ 标准库。

I'll recommend not using something older than GCC 4.5, and preferably 4.6.我建议不要使用比 GCC 4.5 更早的东西,最好是 4.6。 However, you might want to use the version used to compile your linux distribution.但是,您可能希望使用用于编译 linux 发行版的版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM