Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Programming in C in OS X?

Programming in C in OS X?
Thread Tools
Addicted to MacNN
Join Date: Sep 2000
Location: The Rock
Status: Offline
Reply With Quote
Dec 4, 2001, 08:44 PM
 
Yeah. I'm a first-year engineering student who's doing a basic computer science course - you know, a little C programming. Nothing too spectacular, but the course uses Quincy, a Windows IDE. There isn't a Mac version.

SO...I'm looking for a decent (preferably free) C editor/compiler that will be good for working out some programs. Any help would be appreciated....

greg
Mankind's only chance is to harness the power of stupid.
     
Grizzled Veteran
Join Date: Apr 2001
Status: Offline
Reply With Quote
Dec 4, 2001, 11:25 PM
 
You're in luck.

Not only does OS X include gcc, which is the command-line C compiler (use the cc command), but it also includes a very nice IDE in Project Builder. Just choose "Standard C Tool" as your project type and you'll be creating command-line apps.

(Note that if you got OS X on a new Mac and didn't purchase it as a separate package, the developer tools will not be installed. You'll need to download from developer.apple.com - sign up for a free online membership).

Wade
     
Senior User
Join Date: Mar 2001
Location: Toronto, Ontario, Canada
Status: Offline
Reply With Quote
Dec 4, 2001, 11:36 PM
 
Here's a great article I found on using OS X's Project Builder as well as using the CC compiler in Terminal. Did the tutorial while I was at a Starbucks, time well spent.
http://www.cse.ucsc.edu/~whitmore/CSHWmac/bc_cppX.html
     
Occasionally Quoted
Join Date: Apr 2001
Location: San Francisco
Status: Offline
Reply With Quote
Dec 5, 2001, 03:40 PM
 
.
(Last edited by daimoni; Apr 22, 2004 at 06:57 PM. )
.
     
Addicted to MacNN
Join Date: Sep 2000
Location: The Rock
Status: Offline
Reply With Quote
Dec 5, 2001, 06:08 PM
 
Wonderful. I'm just not looking forward to the 200 meg download on my MODEM....

greg
Mankind's only chance is to harness the power of stupid.
     
Mac Elite
Join Date: May 2001
Location: Up north
Status: Offline
Reply With Quote
Dec 5, 2001, 10:04 PM
 
If you bought your computer and it came with OS X installed, you will have to download, but if you bought the OS X package, it should come with a developer tools cd.

I don't think the 10.1 upgrade cd has it, (mine did not), so I had to download over modem to. This cheeses me. They should at least include dev on their towers, I mean they are professional systems and they do not even come with developer tools. Would it really cost apple all that much money to include it.

I had to download 2 versions of dev, one originally for 10.0 and another for 10.1. Total download time was 24 hours!!! I was sleeping of course.

Last time I complain about this, I promise.
     
Professional Poster
Join Date: Dec 2000
Location: Staffs, UK
Status: Offline
Reply With Quote
Dec 6, 2001, 09:29 AM
 
Try asking your local Apple reseller if they have a dev tools CD that you can burn a copy of -- or ask nicely here and someone might be able to post you a copy.

I wish Apple would lighten up and let magazines distribute this kind of stuff...
     
Grizzled Veteran
Join Date: Apr 2001
Status: Offline
Reply With Quote
Dec 6, 2001, 10:48 AM
 
I don't think the 10.1 upgrade cd has it, (mine did not), so I had to download over modem to. This cheeses me.
The 10.1 upgrade certainly did include developer tools.

But let me get this straight....Apple is providing outstanding development tools for FREE and you guys are complaining because you have to make a download?

Some people are never happy.

Wade
     
Addicted to MacNN
Join Date: Sep 2000
Location: The Rock
Status: Offline
Reply With Quote
Dec 6, 2001, 01:20 PM
 
The 10.1 upgrade CD INCLUDED developer tools you say, WadesWorld???? Are you sure you're not goin' out on a limb with that statement???? Because as far as I can see, MY upgrade CD doesn't have them.

I can't really do that big a download, so I'll just use the command line compiler. It's no big deal either way.

WHat these people are complaining about, Wade, is that Apple HAS free developer tools that they shipped with the original version of OS X - but they didn't include the new version for OS 10.1. SOOOOO...everyone who started using their IDE now has to make a MONSTER download just to get the new version. How hard would it have been to include it on the/a CD, or let one of the many Mac magazines include it with their CDs? It's nothing earth-shaking, but it sure would've been useful....

greg
Mankind's only chance is to harness the power of stupid.
     
Dedicated MacNNer
Join Date: Apr 2001
Location: Bethesda, MD
Status: Offline
Reply With Quote
Dec 6, 2001, 01:52 PM
 
It depends whether you got the free 10.1 upgrade or paid 20 bucks for the almost free upgrade. The one they handed out in the stores did not have a Dev Tools CD. The one that you could order from Apple did have the CD.

dave
     
Addicted to MacNN
Join Date: Sep 2000
Location: The Rock
Status: Offline
Reply With Quote
Dec 6, 2001, 02:07 PM
 
Couldn't I just write in a text editor like eMacs or the like and just compile it from the command line?

greg
Mankind's only chance is to harness the power of stupid.
     
Grizzled Veteran
Join Date: Apr 2001
Status: Offline
Reply With Quote
Dec 6, 2001, 04:18 PM
 
The 10.1 upgrade CD INCLUDED developer tools you say, WadesWorld???? Are you sure you're not goin' out on a limb with that statement???? Because as far as I can see, MY upgrade CD doesn't have them
The 10.1 upgrade CD did not include the tools, but the CD with the developer tools did.

Wait - I see the confusion. I'm talking about the 10.1 CD's that Apple shipped if you sent them $20. There was a developer tools CD in there, along with a 9.21 CD. Perhaps the version they handed out in stores only had the 10.1 CD.

but they didn't include the new version for OS 10.1. SOOOOO...everyone who started using their IDE now has to make a MONSTER download just to get the new version. How hard would it have been to include it on the/a CD, or let one of the many Mac magazines include it with their CDs? It's nothing earth-shaking, but it sure would've been useful....
It couldn't have fit on the 10.1 CD. How hard would it have been to just include another CD? Not hard, but it costs a lot of money. That's why Apple charged a small fee for the 3 CD Set.

As for letting magazines include it, most magazine's CD's are already full. To include it, they'd need to include a second CD that would be of interest only to a tiny percentage of users. Who's going to pay for that?

People often forget there's real costs involved to this stuff.

Wade
     
Grizzled Veteran
Join Date: Apr 2001
Status: Offline
Reply With Quote
Dec 6, 2001, 04:20 PM
 
Originally posted by ShortcutToMoncton:
<STRONG>Couldn't I just write in a text editor like eMacs or the like and just compile it from the command line?

greg</STRONG>
Sure. But you've got to have the developer tools installed either way. That's what contains the compiler and the headers and libraries you need.

Wade

[ 12-06-2001: Message edited by: wadesworld ]
     
Mac Elite
Join Date: May 2001
Location: Up north
Status: Offline
Reply With Quote
Dec 6, 2001, 04:38 PM
 
Oh well, that makes sense. If I had know that paying 20 dollars would have saved me the download I would have done that, I just kinda figured that apple was being a great chum and was going to include it.

This would not be a problem if I had cable or dsl, so there is a lesson to be learned, I should run out of the stoneage and down to my local service provider and sign up for broadband

Apple is still the best computer company in the world, even though I like to complain sometimes.
     
Addicted to MacNN
Join Date: Sep 2000
Location: The Rock
Status: Offline
Reply With Quote
Dec 6, 2001, 07:58 PM
 
Sigh. Well, thanks for the info, anyway, everybody. Looks like I'm gonna hafta make a run for that killer file. It'll take forever, though. Carracho has resumable downloads, right???? Maybe I can grab it on there instead....

greg
Mankind's only chance is to harness the power of stupid.
     
Junior Member
Join Date: Apr 2001
Location: Sunnyvale, CA
Status: Offline
Reply With Quote
Dec 7, 2001, 01:39 PM
 
It is a 180MB download, but you can download them in segments. Download a 10MB segment every night and you'll have 'em all in a couple of weeks :-)

Actually, if you start today, and download one segment every day, you'll be downloading the last one on Christmas day. So just think of it as downloading a Christmas present for your self

[ 12-07-2001: Message edited by: ryochiji ]
     
Addicted to MacNN
Join Date: Feb 2001
Location: zurich, switzerland
Status: Offline
Reply With Quote
Dec 10, 2001, 11:02 AM
 
Originally posted by ShortcutToMoncton:
<STRONG>Sigh. Well, thanks for the info, anyway, everybody. Looks like I'm gonna hafta make a run for that killer file. It'll take forever, though. Carracho has resumable downloads, right???? Maybe I can grab it on there instead....

greg</STRONG>
I've seen some people on this list from Toronto. Mail one of them and ask them to download and burn the thing for you if you offer to pay for it. But since you're at a university do yourself a favour and go to the CS Lab and ask the sysadmin if he'd do it for you if you paid him. You'ld save yourself a lot of hassle and troubles.
weird wabbit
     
   
Thread Tools
Forum Links
Forum 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 On
Top
Privacy Policy
All times are GMT -5. The time now is 11:18 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2