Ubuntu Installation Notes

Ubuntu installation hints

Install gcc and g++ version 9

sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt update
sudo apt install gcc-9 g++-9

Update alternatives to use new installed version

sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 60 --slave /usr/bin/g++ g++ /usr/bin/g++-9

Use new headers to compile

export CPLUS_INCLUDE_PATH=/usr/include/c++/9/