Xcode has your back it is a fully functional and free C complier. If you are feeling a bit confident you can also use the terminal and gcc
Xcode ships with every Mac and every copy of MacOS X. If it were not preinstalled on your computer, then it can be installed using the System Restore or Developer Tools disc. The latest version is a free download from the Apple Developer Connection website.cool where can i get xcode? or how do i install it i guess?
whats a good c compiler for mac? i need it for my course...any suggestions
xcode do the trick?
whats a good c compiler for mac? i need it for my course...any suggestions
xcode do the trick?
What's wrong with GCC?
If you are after a C compiler, use the developer tools, or better yet install GCC (GNU Compiler Collection).
Srsly
considering xcode uses gcc...
I agree, unless you need to write a cocoa or carbon app. If you need help on commands, just use the manual pages in the Terminal (man).Yeah, that should be fine for whatever you need for your course, as long as you keep in mind that not all gcc commands are supported in OS X, but you probably won't have any problems with that. I just use it with terminal instead of Xcode.
As long as your not creating visual elements (windows, dialog boxes, etc.) c-code is pretty generic and portable.
Talk to the professor and tell him your situation. I don't think they would force you to buy a windows PC just to compile.
He may want to run code on his own PC just to check though...
Mike...
my prof was talking about how C is universal and can work with many operating systems...can i write windows programs in xcode? i think ill most likely have to hand in windows apps (uhg ****ing windows)...
considering xcode uses gcc...
a good example if you try to use a library to print an IP address from x86 linux and get the code to compile on a PPC running OS X the ip address will print backwards due the little endian on a PPC.
Only if the original programmer didn't know their stuff. Lookup "htonl" and "ntohl".