econchick / new-coder

New Coder tutorials
zlib License
597 stars 394 forks source link

clang used instead of gcc on my version of MacOS, prints different output for c compiler setup #163

Open tamblood opened 9 years ago

tamblood commented 9 years ago

For this section of the setup for MacOs for C Compiler:

This gives you the GCC or the GNU Compiler Collection. To test installation, within the Terminal application, type gcc and you should get the following:

1 2 $ gcc i686-apple-darwin11-llvm-gcc-4.2: no input files

However, I see:

Tamaras-MacBook-Pro:new-coder tamaralblood$ gcc clang: error: no input files Tamaras-MacBook-Pro:new-coder tamaralblood$

I believe this happens because MacOs defaults to calling clang when gcc is typed. I think this section of the tutorial could be clearer if it mentioned, 'you may also see a different output, such as $ gcc clang: error: no input files '

Without such verbiage, I thought I had made a mistake because I didn't see: i686-apple-darwin11-llvm-gcc-4.2: no input files