I want to have gcc-5 because I want c++14 support. So I removed the previous versions of gcc; gcc-4.8 and gcc-4.9 and installed gcc-5 and g++-5. But now when command
gcc --version it replies:
The program 'gcc' is currently not installed. You can install it by typing: sudo apt-get install gcc
On the other hand, if I command
sudo apt-get install gcc-5, I get the reply
gcc-5 is already the newest version. But if I command
sudo apt-get install gcc it always tries to take gcc-4.8.
Why is this behaviour? How can I ensure I get gcc-5 when command
sudo apt-get install gcc.