Compile within Xcode?

Posted:
in Mac Software edited January 2014
I decided to write a very simple C program today in Xcode (didn't feel like using the terminal today), and well I'm having a slight problem. I can't access the compile feature in Xcode. I'm thinking this is because I selected File -> New Empty File, then started to program. How can I access the compile feature via Xcode?

Comments

  • Reply 1 of 2
    arnelarnel Posts: 103member
    This is a complete guess, but here goes. Because you didn't start with one of the templates, none of the compiler settings are set up.



    If you're just wanting to write a small command line tool, I think there's an option for that near the bottom of the list of templates in the New Project box.



    Neil.

    a.k.a. Arnel
  • Reply 2 of 2
    karl kuehnkarl kuehn Posts: 756member
    Arnel is nearly there, XCode (and all IDE's for that matter) need to have a project in which to put the related files that get created (the build files, the preferences and settings for the IDE, etc). It is not so much the template as the project, but there is a template for command line programs.
Sign In or Register to comment.