I been trying to downgrade my Windows Ubuntu GCC compiler and what I've done so far is
sudo apt-get update
sudo apt-get install gcc
gcc --version
which gives me:gcc 7.4.0
sudo apt-get install gcc-4.6
which gives:
Package gcc-4.6 is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source However the following packages replace it: cpp-4.8