Results 1 to 2 of 2
Hello community, I am using linux with gcc-4.7.2 and I need to compile a program specifically with another gcc version (4.4) Is there an easy way of installing this lower ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 04-14-2013 #1
- Join Date
- Aug 2012
Using different gcc versions
I am using linux with gcc-4.7.2 and I need to compile a program specifically with another gcc version (4.4)
Is there an easy way of installing this lower version and use it just to compile this program?
Many thanks in advance!
- 04-14-2013 #2
- Join Date
- Jan 2005
- Saint Paul, MN
GCC allows for more than one version to be present on a system at one time. They include the "gcc-config" command to select which version that the user is using. Sometimes you package manager does not have the particular version that you are interested in. For instance my package manager allows you to install one version from each of these sets at the same time.
- 4.4.4-r2 or 4.4.5 or 4.4.6-r1 or 4.4.7
- 4.5.3-r2 or 4.5.4
I have installed versions 4.5.4 and 4.6.3.
When I ask for profiles using gcc-config, I see:
 x86_64-pc-linux-gnu-4.5.4 *  x86_64-pc-linux-gnu-4.6.3