The GNU Compiler Collection includes front ends for C, C++, Objective-C, Fortran, Ada, and Go, as well as libraries for these languages (libstdc++,...). https://gcc.gnu.org
See https://gcc.gnu.org for releases.
Edit the Makefile
to ensure that you are setting the intended version, then run make
.
make gcc6
make gcc7