Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

stone315

macrumors regular
Original poster
Jun 17, 2008
149
0
hi, i'm a newbie programmer, i'm going into college in the fall and the introductory course is in java. however, i want some programming experience before i go in, so i decided to teach myself c. i bought kernighan and ritchie, and i was wondering if anyone could recommend a good c compiler for a mac for me. thanks!
 
gcc is the most widespread C compiler, and you'll be able to transfer your knowledge to many other platforms and architectures.

Now is not the time for XCode or other IDEs. Learn to use gcc, gdb, and other tools independently first.

-Lee
 
ok thanks. is there any difference between gcc for windows and for mac? like if i type the exact same thing on each one, i'll get the same result, right? i'm just asking cause my macbook hasn't come in yet, so i'm running off my home pc until it does. i was going to use my girlfriend's macbook while she's in italy, but i don't want to download stuff to her computer.

EDIT: alright, i've been running vista for 4 days now and i want to throw this goddamn hp out my window. it's not a mac, so i can't use fetch as an ftp, so i'm trying to use filezilla. i downloaded the setup file, and now i'm trying to install it on my computer, but for every individual file in the setup program i get an error message that says "error opening file for writing". any ideas on how to fix this, or for another free ftp?
 
For ftp on Windows, use the Cygwin command line.

Or Windows Powershell, which sucks compared to Cygwin, but tends to impress Windows users who are used to the vestigial command line support offered by command.exe.
 
EDIT: alright, i've been running vista for 4 days now and i want to throw this goddamn hp out my window. it's not a mac, so i can't use fetch as an ftp, so i'm trying to use filezilla. i downloaded the setup file, and now i'm trying to install it on my computer, but for every individual file in the setup program i get an error message that says "error opening file for writing". any ideas on how to fix this, or for another free ftp?

Sounds like you need to be running in an administrator account.
 
From what I have heard about Windows Vista, you should probably dump it and go back to what ever flavor of windows you were using before. And try to get your money back for the crummy programming codes that is called Vista.:apple:


In windows try Visual C or Visual C++.
 
thanks guys, i got into an administrator account and got filezilla running. now i just need to learn how to actually use gcc, but i'll worry about that in the morning.
 
is it a GUI compiler, like you press a button and it does it, or is it command-line driven?
 
Both. Just the same as the compiler supplied with Xcode.

cool thanks :) I installed GCC from the Xcode Tools on the Leopard DVD and it took 90.5MB of space, but it doesn't appear as an app - like i can't launch it. I deleted it and installed it again, same thing. I didn't install any Xcode stuff just gcc.pkg.


Thanks
 
cool thanks :) I installed GCC from the Xcode Tools on the Leopard DVD and it took 90.5MB of space, but it doesn't appear as an app - like i can't launch it. I deleted it and installed it again, same thing. I didn't install any Xcode stuff just gcc.pkg.


Thanks

You need to install the whole package if you want to use the GUI part called Xcode. GCC is just a command line compiler. Xcode is an IDE built to use it.
 
You need to install the whole package if you want to use the GUI part called Xcode. GCC is just a command line compiler. Xcode is an IDE built to use it.

Gosh darn it :( ah well learning C anyway so i guess i should just install it and be done.... bye bye 5GB of space :(


thanks
 
so is xcode easier to use than gcc for a newbie since it's gui instead of command line driven? i'm assuming yes.
 
OK I installed Xcode from the Leopard DVD, now if I download the iPhone SDK does it replace my version of Xcode + Interface Builder with the latest versions of those apps?
 
OK I installed Xcode from the Leopard DVD, now if I download the iPhone SDK does it replace my version of Xcode + Interface Builder with the latest versions of those apps?

Yes, but if you are not planning on doing any iPhone development then I would just download the latest version of Xcode. Best to uninstall the one on the Leopard DVD first though. There is a readme document which explains how, just trashing the Developer folder is not enough.
 
Yes, but if you are not planning on doing any iPhone development then I would just download the latest version of Xcode. Best to uninstall the one on the Leopard DVD first though. There is a readme document which explains how, just trashing the Developer folder is not enough.

I'd try and avoid downloading Xcode, as it's a pretty big file for my 512kbps connection to handle :( I may do though if I get really into this programming lark though.

What type of template do I choose from the list to make a C app? Just use a C++ template and just write C?

Thanks, you are officially A Great Help :)
 
I'd try and avoid downloading Xcode, as it's a pretty big file for my 512kbps connection to handle :( I may do though if I get really into this programming lark though.

What type of template do I choose from the list to make a C app? Just use a C++ template and just write C?

Thanks, you are officially A Great Help :)

Well the iPhone SDK is the larger than the standard Xcode download so there you do :).

As for template choose the Standard Tool template in the Command Line Utilities section.
 
Well the iPhone SDK is the larger than the standard Xcode download so there you do :).

As for template choose the Standard Tool template in the Command Line Utilities section.

Thanks, I'll play about with my current Xcode learning C, and then Objective-C. Then I'll upgrade my Xcode version.


Thanks a lot :)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.