Results 1 to 7 of 7
  1. #1

    robbiemullen's Avatar
    Member Since
    Apr 25, 2005
    Location
    Ireland
    Posts
    203
    Specs:
    Power Mac G5 1.6Ghz,w/ 1.2Gb ram,+17" Apple studio Display..Mac Book Pro 2GHz w/ 1.5gb ram
    C compiler for OSX
    Does anyone know of a good free C compiler for OSX ?

  2. #2

    novicew's Avatar
    Member Since
    Jan 04, 2006
    Location
    Hamburg, Germany
    Posts
    1,385
    Specs:
    MacBook Pro | iMac(2.1 G5) | MacBook(2.16 C2D) | MacMini (1.67 CD) | iPhone 4 | iPad (3rd Gen)
    You can compile C programs in the Terminal using GCC which is preinstalled on your Mac. You can also find lots commercial / free GUI compilers as well. Apple’s very own XCode 2 is one of the best (according to Apple) but I am kind of disappointed with its complicated structure. Eclipse with the CDT plugin is another free alternative and works pretty well

  3. #3

    mac57's Avatar
    Member Since
    Apr 29, 2006
    Location
    St. Somewhere
    Posts
    4,560
    Specs:
    iMac 27" 3.4 GHz, 256 GB SSD, 2 TB HDD, 8 GB RAM
    gcc is the golden standard in the open source world and it is available on your Mac. If not , you need only install it from your system DVD. I think it is under XCode Tools or some such. It works great - I use it all the time. Tiger comes with gcc-4.0.1.
    My Macs: iMac 27" 3.4 GHz, Mac Pro 3.2 GHz, PowerMac G5 Quad 2.5 GHz, G4 Cube with 1.2 GHz Upgrade
    My iStuff: 64GB iPhone 5, 64GB iPad4, 30GB iPod Video, 16GB iPod Touch
    My OS': Mac OS X Lion, Mac OS X Snow Leopard, Mac OS X Tiger, Mac OS 9.2.2, openSUSE 10.3
    I was on the Mac-Forums honor roll for September 2007

  4. #4


    Member Since
    Apr 10, 2007
    Posts
    313
    Here's a good place to get it compiled with PPC in mind. http://hpc.sourceforge.net/

  5. #5

    DoubleCap's Avatar
    Member Since
    Feb 12, 2007
    Location
    Northeast US
    Posts
    552
    Specs:
    MacBook 2GHz/2GB/CD
    gcc + pico (editor) = my favorite.

  6. #6


    Member Since
    Mar 14, 2008
    Posts
    1
    Quote Originally Posted by novicew View Post
    You can compile C programs in the Terminal using GCC which is preinstalled on your Mac. You can also find lots commercial / free GUI compilers as well. Apple’s very own XCode 2 is one of the best (according to Apple) but I am kind of disappointed with its complicated structure. Eclipse with the CDT plugin is another free alternative and works pretty well
    Will this work for compiling programs such as ps2pdf (from Ghostview or similar). I attempted to compile the above and my MacBook Pro said there was no compiler available. When I resorted to the help window and punched in C compiler nothing at all came up. How do you use it and where can it be found?

    Thank you

    Disregard my question above, I found the Xcode Tools and installed the Compiler and it works now. Thank you

  7. #7

    Discerptor's Avatar
    Member Since
    Aug 02, 2005
    Posts
    1,229
    Specs:
    2.6GHz Core i7 15" MacBook Pro - 8GB DDR3 SDRAM - 750GB 7200 RPM HDD - GeForce 650M GT 1GB VRAM
    Quote Originally Posted by prpandey View Post
    gcc + pico (editor) = my favorite.
    Excuse me, but real programmers use butterflies.



    And to be on topic, I find the GCC that comes with Xcode developer tools is perfectly fine, even if it is 4.0.1. I would actually recommend against using the GCC from HPC, because it seems the installation of python assumes you have access to certain Apple-only gcc options, and it's possible this could cause an issue if anything else assumes the same thing when it detects Darwin (though it's highly likely only Python does this, and I'm pretty sure you can install it with an installer anyway... I'd at least keep both on your system, just to be on the safe side).

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. C Compiler
    By girgroupie47 in forum Switcher Hangout
    Replies: 6
    Last Post: 09-20-2009, 11:02 PM
  2. g++ compiler
    By trooper83 in forum OS X - Development and Darwin
    Replies: 3
    Last Post: 05-18-2009, 11:38 AM
  3. C++ Compiler
    By nyzwerewolf in forum OS X - Development and Darwin
    Replies: 4
    Last Post: 09-25-2008, 10:43 PM
  4. Compiler ...
    By A.I. BOT in forum OS X - Operating System
    Replies: 0
    Last Post: 09-18-2005, 05:24 PM
  5. De-Compiler
    By Big Beard in forum OS X - Development and Darwin
    Replies: 1
    Last Post: 02-18-2004, 01:17 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •