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

  • If you install XCode from the app store, you get gcc with it. – WGroleau Oct 30 '18 at 16:34
  • 1
    @WGroleau xcode does not provide gcc. It provides clang which is usually sufficient don't assume that gcc us the correct compiler to use. – mmmmmm Oct 30 '18 at 21:20
  • Didn't know they changed it. Used to be gcc. – WGroleau Nov 2 '18 at 23:32

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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .