4

How can I use gcc on mac (without Xcode) for C programming? Which file shall I download? How do I install and run it?

James M
  • 18,506
  • 3
  • 48
  • 56
lukas morphey
  • 73
  • 1
  • 1
  • 4
  • 1
    Xcode and GCC are not really related. – crush Feb 26 '13 at 16:07
  • When you install the developer tools, you get Xcode, clang and an outdated version of gcc. Since clang is largely compatible with gcc, you should probably use it. – zneak Feb 26 '13 at 16:08
  • 2
    The easiest way is just to install Xcode - this doesn't force you to use the Xcode GUI if you don't want to - you can still do all the old skool stuff with emacs, vi, makefiles, gcc, gdb, etc. – Paul R Feb 26 '13 at 16:08
  • 1
    Frankly what's wrong with this question to have 3 downvotes in 2 minutes? – CharlesB Feb 26 '13 at 16:09

1 Answers1

12

Go to Apple dev download site and get the Command Line Tools. It has gcc without XCode.

CharlesB
  • 86,532
  • 28
  • 194
  • 218