gcc@10

GNU Compiler Collection version 10 for C, C++, and Fortran

brewmacoslinux
Try with needOr install directly
Source

About

GNU compiler collection

Commands

gcc-10g++-10gfortran-10gcov-10

Examples

Compile a C program to an executable$ gcc-10 -o myprogram myprogram.c
Compile C++ code with optimization flags$ g++-10 -O2 -o myapp main.cpp utils.cpp
Compile with debugging symbols for gdb$ gcc-10 -g -o debug_prog program.c