11
rated 0 times
[
11]
[
0]
/ answers: 1 / hits: 24582
/ 2 Years ago, mon, july 25, 2022, 7:23:13
I have downloaded g++ 4.8 on Ubuntu 12.10 by doing:
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install g++-4.8
but when I do:
sudo update-alternatives --config g++
to switch g++ versions it says:
update-alternatives: error: no alternatives for g++.
However if I do:
g++ --version
it says:
g++ (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
Copyright (C) 2011 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.
How do I set my g++ 4.8 installation to be the default g++?
More From » gcc