08-26-2008, 02:08 PM #1
Help!! Incredibly basic Xcode Tools Question
- Member Since
- Aug 26, 2008
Hello all and thanks in advance,
I'm trying to learn in preparation for a class I'll have to take later this year. I downloaded Xcode and created a new C file. I named it test.c and it also created test.h (anyone know why that is?). I then entered the following text:
printf("Hello there world!");
and then I saved it. This is where I am stuck. I cannot figure out how to run the program. There is a tab up top that says "Run" but any choice that looks good is grayed out. I would appreciate any advice on how to run this program, as well as any other advice you have for someone learning C with nothing more than basic HTML experience. Thank you!!
08-26-2008, 03:40 PM #2
- Member Since
- Aug 12, 2006
- Mac mini 1.25 GHz PPC G4 1GB Ram 15,4" MacBookPro Core 2 Duo 2GB
Choose Xcode-File-NewProject-Command Line Utility-Standard Tool
name it and save.
on the left side in column 'Groups & Files' disclose 'Source'. there you find your main.c
on the lower right side you see the generated code. type 'Build & Go' -- that's it!
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
By jnojr in forum OS X - Operating SystemReplies: 1Last Post: 11-27-2012, 04:53 PM
By jimmydog in forum OS X - Operating SystemReplies: 0Last Post: 07-13-2012, 06:19 PM
By jps2012 in forum OS X - Operating SystemReplies: 5Last Post: 04-16-2012, 10:47 PM
By DB_KG in forum OS X - Development and DarwinReplies: 3Last Post: 08-07-2009, 10:23 PM
By DrQuincy in forum OS X - Development and DarwinReplies: 4Last Post: 01-16-2008, 03:22 PM