Install g++-4.8 by entering the following commands in the terminal:
sudo apt update sudo apt install g++-4.8
Description:
GNU C++ compiler
This is the GNU C++ compiler, a fairly portable optimizing compiler for C++.
Homepage: http://gcc.gnu.org/
Version: 4.8.5-4ubuntu8
Section: universe/devel