It's probably best also to get G++ in which case this command should do it if you want version 5 of GCC:

sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 100 --slave /usr/bin/g++ g++ /usr/bin/g++-5

Reply via email to