New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus • Advice and insight from world-class Apple enthusiasts • Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

C compiler for OSX


Thread Closed

 
Thread Tools
robbiemullen

 
robbiemullen's Avatar
 
Member Since: Apr 25, 2005
Location: Ireland
Posts: 197
robbiemullen is on a distinguished road
Mac Specs: Power Mac G5 1.6Ghz,w/ 1.2Gb ram,+17" Apple studio Display..Mac Book Pro 2GHz w/ 1.5gb ram

robbiemullen is offline
Does anyone know of a good free C compiler for OSX ?
novicew

 
novicew's Avatar
 
Member Since: Jan 04, 2006
Location: Hamburg, Germany
Posts: 1,385
novicew is a name known to allnovicew is a name known to allnovicew is a name known to allnovicew is a name known to allnovicew is a name known to allnovicew is a name known to allnovicew is a name known to all
Mac Specs: MacBook Pro | iMac(2.1 G5) | MacBook(2.16 C2D) | MacMini (1.67 CD) | iPhone 4 | iPad (3rd Gen)

novicew is offline
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
mac57

 
mac57's Avatar
 
Member Since: Apr 29, 2006
Location: St. Somewhere
Posts: 4,560
mac57 has a brilliant futuremac57 has a brilliant futuremac57 has a brilliant futuremac57 has a brilliant futuremac57 has a brilliant futuremac57 has a brilliant futuremac57 has a brilliant futuremac57 has a brilliant futuremac57 has a brilliant futuremac57 has a brilliant futuremac57 has a brilliant future
Mac Specs: iMac 27" 3.4 GHz, 256 GB SSD, 2 TB HDD, 8 GB RAM

mac57 is offline
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
jakeroberts

 
Member Since: Apr 10, 2007
Posts: 313
jakeroberts will become famous soon enough

jakeroberts is offline
Here's a good place to get it compiled with PPC in mind. http://hpc.sourceforge.net/
DoubleCap

 
DoubleCap's Avatar
 
Member Since: Feb 12, 2007
Location: Northeast US
Posts: 552
DoubleCap will become famous soon enough
Mac Specs: MacBook 2GHz/2GB/CD

DoubleCap is offline
gcc + pico (editor) = my favorite.
Cachibache

 
Member Since: Mar 14, 2008
Posts: 1
Cachibache is on a distinguished road

Cachibache is offline
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
Discerptor

 
Discerptor's Avatar
 
Member Since: Aug 02, 2005
Posts: 1,229
Discerptor is a name known to allDiscerptor is a name known to allDiscerptor is a name known to allDiscerptor is a name known to allDiscerptor is a name known to allDiscerptor is a name known to allDiscerptor is a name known to all
Mac Specs: 2.6GHz Core i7 15" MacBook Pro - 8GB DDR3 SDRAM - 750GB 7200 RPM HDD - GeForce 650M GT 1GB VRAM

Discerptor is offline
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 Closed


« Terminal broken? | Launching an application via script »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
X-Code (wrong name? i mean the Visual C++ equivalent compiler) Scotty87 OS X - Apps and Games 2 07-21-2006 10:28 AM
C++ IDE and/or Compiler for other OS Mitch OS X - Development and Darwin 3 03-28-2006 10:07 AM
gcc compiler, no stdio.h found lzco OS X - Development and Darwin 6 10-21-2005 04:23 PM
C++ Compiler/ Visual Studio Alternative? echo12 Running Windows (or anything else) on your Mac 3 08-25-2004 06:36 PM
Xcode C++ Compiler error steved3298 OS X - Development and Darwin 2 07-22-2004 12:02 AM

All times are GMT -4. The time now is 08:16 PM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?