Sunday, August 2, 2009

Need held to use xcode on Mac OS X?

I am a somewhat experienced C programmer, but I need a compiler for my programs.


I have a iBook G4 with Mac OS X Version 10.4.8. I have found a compiler on my computer via spotlight. It is a folder called xcode. How do I run it, and use it to compile my C programs?


If needed I can supply more info.

Need held to use xcode on Mac OS X?
If you've got a Developer folder on your hard drive, then Xcode is installed, and you should be able to start XCode.app, create a new project, type some code, and have it complie.





If you just want a command-line compiler, try running 'gcc' in the Terminal command line.





If you don't have XCode.app and gcc properly installed, you can download them from developer.apple.com
Reply:XCode is Apple's big IDE. It's pretty good for developing native OS X apps, especially if you're using the Cocoa framework. However, it's interface has a bit of a learning curve. As an 'Experienced C programmer', you're probably best off using the gnu compiler - if you've ever developed on Unix or Linux, you'll feel right at home. Just pop open /Applications/Utilities/Terminal, and type 'gcc /some/file/path/myProgram.c'





If your only experience is Visual Studios, then you might be better off getting a user friendly IDE (maybe Eclipse, though I hear that sucks for c/c++).


No comments:

Post a Comment