Gcc on Mac is an alias for Clang #22

Closed
kdungs opened this Issue Jun 11, 2015 · 2 comments

Comments

Projects
None yet
4 participants
@kdungs

kdungs commented Jun 11, 2015

Totally amazing read so far! Just a small thing that came to my mind:

In chapter 3.3 after the squares.c example it says

That runs the GNU C Compiler

which AFAIK is technically not true for a "normal" Mac. There gcc is an alias for clang.

@psiemens

This comment has been minimized.

Show comment
Hide comment
@psiemens

psiemens Jun 12, 2015

Can confirm.

screen shot 2015-06-11 at 7 12 29 pm

Can confirm.

screen shot 2015-06-11 at 7 12 29 pm

@tophtucker tophtucker added the text label Jun 12, 2015

@sushihangover

This comment has been minimized.

Show comment
Hide comment
@sushihangover

sushihangover Jun 14, 2015

I had the same basic question.

Are you running a true gcc?

  • With Xcode 4.2 or later, clang is the default and gcc is no longer included, just gcc --version
  • Or installed and compiled gcc yourself (or via Ports || Brew).
  • Or using a Xcode (and/or cmd line tool install) and thus have a 'system' gcc which is really a symlink to * gcc-mavs and thus clang in disguise.

And the posting is great!!!. (FYI: I also love the whole using Github issues... 👍 )

I had the same basic question.

Are you running a true gcc?

  • With Xcode 4.2 or later, clang is the default and gcc is no longer included, just gcc --version
  • Or installed and compiled gcc yourself (or via Ports || Brew).
  • Or using a Xcode (and/or cmd line tool install) and thus have a 'system' gcc which is really a symlink to * gcc-mavs and thus clang in disguise.

And the posting is great!!!. (FYI: I also love the whole using Github issues... 👍 )

@tophtucker tophtucker closed this in 9384710 Jul 3, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment