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

Sedushi

macrumors newbie
Original poster
Oct 18, 2007
8
0
I have tried multiple times to compile a project in Xcode. Can anyone tell me how to do it step by step. Like which type of project do you create, where to put your C or C++ file. By the way I am trying to do it with C. Need help please!
 

HiRez

macrumors 603
Jan 6, 2004
6,250
2,576
Western US
If there's no UI and you are using straight C, select the "Standard Tool" project type. Put your source files anywhere you want under the Project name tab on the sidebar (you can organize its folders however you like). To compile, just select "Build", that's really all there is to it unless you need more advanced options (of which there are many). You can run it from Xcode or from Terminal (command-line). If I were you I'd download some example C Xcode projects from Apple or other sites and just look at how they are layed out.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.