Does “brew install gcc” installs GNU C++ compiler on macOS

gcchomebrew

I am a new Mac user and was wondering if installing gcc via brew install gcc command would install GNU C++ compiler?

Best Answer

Yes, installing gcc using brew install gcc will install GNU C++ compiler.

The compiler is installed by default in /usr/local/Cellar/gcc/8.2.0/bin.