天天看点

gcc降版本 linux,如何更改gcc版本的linux

gcc降版本 linux,如何更改gcc版本的linux

I have gcc-4.6 & gcc-4.7 both installed on my machine and I made gcc the default compiler. But still I could see 4.6 under "cat /proc/version" but I want 4.7 in place of 4.6.

cat /proc/version

Linux version 3.2.0-4-rt-686-pae ([email protected]) (gcc version 4.6.3 (Debian 4.6.3-14) ) #1 SMP PREEMPT RT Debian 3.2.65-1+deb7u2

How can I change gcc version here from 4.6 to 4.7 ?

Any help would be really helpfull for me.

Many Thanks.

解决方案Is there any way to use a module in 3.2 which is compiled with kernel

3.10 ?

You can try the option -f of modprobe.