找回密码
 注册
查看: 5356|回复: 1

GCC 4.2.3 is released

[复制链接]
发表于 2008-2-5 05:57:26 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

x
[这个贴子最后由newcfd在 2008/02/05 06:01am 第 5 次编辑]

http://gcc.gnu.org/gcc-4.2/changes.html[br][br][以下内容由 newcfd 在 2008年02月06日 01:18am 时添加] [br]
default gcc version in Ubunto is 4.1  which  generates slower code than gcc-3.3. Therefore do not use it.
 楼主| 发表于 2008-2-5 08:35:48 | 显示全部楼层

GCC 4.2.3 is released

installation steps:
1. ../configure -v --enable-languages=c,c++ --prefix=/usr/gcc-4.2-3 --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --program-suffix=-4.2-3 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr --with-gnu-ld --enable-checking=release x86_64-linux-gnu --disable-multilib
2. make (-j2 if you have dual cores)
3. make install(as root)  or sudo make install
[br][br][以下内容由 newcfd 在 2008年02月05日 08:41am 时添加] [br]
check if the installation works, type gcc -version. If it shows:
gcc (GCC) 4.2.3
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
installation is successful. If not, do the following:
1. go to /usr/bin/
2. sudo rm  gcc
3. sudo rm g++
4. sudo ln -s  gcc-4.2.3 gcc
5. sudo ln -s g++-4.2.3 g++
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表