Results 1 to 2 of 2
  1. #1

    Member Since
    Aug 26, 2008
    Help!! Incredibly basic Xcode Tools Question
    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!!

  2. #2

    josef's Avatar
    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!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. XCode command line tools?
    By jnojr in forum macOS - Operating System
    Replies: 1
    Last Post: 11-27-2012, 04:53 PM
  2. xcode tools for panther
    By jimmydog in forum macOS - Operating System
    Replies: 0
    Last Post: 07-13-2012, 06:19 PM
  3. How to get Mac to see that Xcode Tools have installed
    By jps2012 in forum macOS - Operating System
    Replies: 5
    Last Post: 04-16-2012, 10:47 PM
  4. Need help working with basic C in xcode
    By DB_KG in forum macOS - Development and Darwin
    Replies: 3
    Last Post: 08-07-2009, 10:23 PM
  5. Programming basic C in Xcode
    By DrQuincy in forum macOS - Development and Darwin
    Replies: 4
    Last Post: 01-16-2008, 03:22 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts