请教如何改变gcc版本!

C、C++和Java语言
回复
scoolgang
帖子: 7
注册时间: 2009-03-06 9:44
送出感谢: 0
接收感谢: 0

请教如何改变gcc版本!

#1

帖子 scoolgang » 2009-03-20 11:31

现在内核是用gcc 4.2.3编译的,安装了cpp,gcc-base,libgcc1的相应版本的包之后,如何对应到gcc 4.2.4

网上查到一个原来是4.1的,但是也安装了4.2
lrwxrwxrwx 1 root root 16 2007-12-05 16:21 /usr/bin/gcc -> /usr/bin/gcc-4.2
-rwxr-xr-x 1 root root 204836 2007-10-19 11:38 /usr/bin/gcc-4.1
-rwxr-xr-x 1 root root 192532 2007-10-14 11:49 /usr/bin/gcc-4.2
-rwxr-xr-x 1 root root 16312 2007-10-19 11:31 /usr/bin/gccbug-4.1
-rwxr-xr-x 1 root root 2018 2007-04-08 21:57 /usr/bin/gccmakedep


su -
export CC=/usr/bin/gcc-4.1
修改到4.2了

请问如何将4.2.3修改到4.2.4,我看了/usr/bin下面只有一个gcc-4.2
scoolgang
帖子: 7
注册时间: 2009-03-06 9:44
送出感谢: 0
接收感谢: 0

Re: 请教如何改变gcc版本!

#2

帖子 scoolgang » 2009-03-20 11:32

Your kernel was built with "gcc" version "4.2.3", while you are trying to use
"/usr/bin/gcc" version "4.2.4". This configuration is not recommended and
VMware Workstation may crash if you'll continue. Please try to use exactly same
compiler as one used for building your kernel. Do you want to go with compiler
"/usr/bin/gcc" version "4.2.4" anyway?
回复

回到 “C/C++/Java”