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 just downgraded from 13.04, which seems to have some stability problems right now, and moved back to 12.04.LTS.

I installed the GCC 4.8 compiler, which is not the default GCC compiler on 12.04. I need this compiler to get all the C++ 11 features it supports and were there by default with the compiler that comes with 13.04, using the ‘-std=c++11' switch.

So now I have 4.8 compiler installed, but I can't figure out how to make applications understand that the new compiler should be used for gcc/g++ instead of the default GCC compiler that comes with 12.04 (4.4.x?). How do I do this?

I saw somewhere that update-alternatives would do it. But I don't know to how use it to set the new GCC compiler to be the system default.

share|improve this question
    
See: stackoverflow.com/questions/17907026/… for the required commands to upgrade to 4.8. –  comeAndGo Aug 6 '13 at 18:28
add comment

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.