newcfd 发表于 2008-2-5 05:57:26

GCC 4.2.3 is released

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

http://gcc.gnu.org/gcc-4.2/changes.html[以下内容由 newcfd 在 2008年02月06日 01:18am 时添加]
default gcc version in Ubunto is 4.1whichgenerates slower code than gcc-3.3. Therefore do not use it.

newcfd 发表于 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
[以下内容由 newcfd 在 2008年02月05日 08:41am 时添加]
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 rmgcc
3. sudo rm g++
4. sudo ln -sgcc-4.2.3 gcc
5. sudo ln -s g++-4.2.3 g++
页: [1]
查看完整版本: GCC 4.2.3 is released