I am a new Mac user and was wondering if installing gcc via brew install gcc
command would install GNU C++ compiler?
Does “brew install gcc” installs GNU C++ compiler on macOS
gcchomebrew
Related Question
- GCC 4.7 (via brew) keeps including from “/usr/include/c++/4.2.1”
- MacOS – Install gcc to mac via Terminal
- MacOS – How to change the GNU Make’s (default) default location of gcc
- MacOS – Installing gnu-tar without brew
- Ld linker is missing when installing gcc using Homebrew on Mac OS
- Any Pitfalls in Replacing gcc and g++ With GNU Versions
Best Answer
Yes, installing
gcc
usingbrew install gcc
will install GNU C++ compiler.The compiler is installed by default in
/usr/local/Cellar/gcc/8.2.0/bin
.