Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have some development work, it seems that GCC 4.8 will not work well with other development tools, so I may have to stick with GCC 4.7, but I am not sure if this is allowed in Ubuntu 13.10(64bit). If yes, can anyone tell me how to install and configure gcc 4.7 here?

share|improve this question
add comment

1 Answer 1

Yes, the two versions will happily coexist. You can invoke each individually by specifically invoking it though only one version will have CC aliased to it.

Install each separately with:

sudo apt-get install gcc-4.7

sudo apt-get install gcc-4.8

When you are ready to compile with a specific version invoke it explicitely:

gcc-4.7 source.c -o executable

or

gcc-4.8 source.c -o executable
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.