How to use multiple instances of gcc?

Posted by sud_the_devil on Ask Ubuntu See other posts from Ask Ubuntu or by sud_the_devil
Published on 2013-06-27T09:28:28Z Indexed on 2013/06/27 10:29 UTC
Read the original article Hit count: 266

I have both gcc 4.7.3 and 4.8.1 installed

But on running gcc --version I get

gcc (Ubuntu/Linaro 4.7.3-1ubuntu1) 4.7.3
Copyright (C) 2012 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.

I am an Ubuntu newbie and I don't know much about updating symbolic-links...

I searched the Internet, and found out about update-alternatives but was reluctant to use it...

Please can someone help me in choosing 4.8 over 4.7 & also tell me is it bad to have 2 versions of same gcc?

© Ask Ubuntu or respective owner

Related posts about gcc

Related posts about symbolic-link