Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

How to set default gcc version

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
cyb3rstorm
Posts: 1
Joined: 2005-11-11 09:20

How to set default gcc version

#1 Post by cyb3rstorm »

listing by synaptic the gcc pkgz, I've noticed that there are more than one version installed, and doing a "gcc -v" I've seen that the default used by my system is 3. 3.5. Since I've installed the 4.0 version and I want to use it for default, what I have to do?

User avatar
sensovision
Posts: 113
Joined: 2004-11-15 11:38
Location: Ukraine
Contact:

#2 Post by sensovision »

not sure if it's right way, as maybe it could be done through dpkg-reconfigure but I did this:
log as a root and than:

Code: Select all

rm /usr/bin/gcc
ln -s /usr/bin/gcc-4.0 /usr/bin/gcc
Denis

Post Reply