how to install gcc-12 on ubuntu
gcc-12 is not available in ubuntu 20.04, so we need to compile it from source code, here are the steps which I borrowed from this video: Step 1: clone gcc source code and checkout gcc-12 branch $ git clone https://gcc.gnu.org/git/gcc.git gcc-source $ cd gcc-source/ $ git branch -a $ git checkout remotes/origin/releases/gcc-12 Step 2: make … Read more