New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

Start a Discussion

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

Help!! Incredibly basic Xcode Tools Question

Post Reply New Thread Subscribe

Thread Tools

Member Since: Aug 26, 2008
Posts: 1
pdcom is on a distinguished road

pdcom is offline
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:

int main()
printf("Hello there world!");

return 0;

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!!
QUOTE Thanks

josef's Avatar
Member Since: Aug 12, 2006
Location: Austria
Posts: 3
josef is on a distinguished road
Mac Specs: Mac mini 1.25 GHz PPC G4 1GB Ram 15,4" MacBookPro Core 2 Duo 2GB

josef is offline
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!
QUOTE Thanks

Post Reply New Thread Subscribe

« What gets suspended, when Mac OS gets locked | Lazarus and Leopard - looking for the idiotproof guide »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Starter
Last Post
Basic PC to Mac question robertward Switcher Hangout 7 02-15-2007 06:34 PM
Really a basic question - file type association kmahesh OS X - Apps and Games 1 04-19-2005 03:44 PM
Basic iPod question Big Mike iPod Hardware and Accessories 8 04-16-2005 11:49 AM
Basic OSX question StarDrifter OS X - Operating System 17 03-30-2005 10:35 AM
another basic PC transition question frosty Apple Notebooks 7 05-20-2004 09:48 AM

All times are GMT -4. The time now is 10:13 PM.

Powered by vBulletin
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.

Welcome to

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!

(4 digit year)

Already a member?