1. Welcome to the new MacRumors forums. See our announcement and read our FAQ

Configuring Xcode for C++

Discussion in 'Mac Programming' started by nothvice, Jul 8, 2009.

  1. macrumors newbie

    #1
    Hello. I am currently learning C++ and need to now how to configure Xcode to run very simple C++ programs. I'm not doing any GUI stuff right now, just command line stuff. I have tried to configure it myself, but every time I create a new project it adds all these extra files that I assume is for GUI stuff. When it adds all the extra files, I can't get my simple programs to work.

    Thanks.
     
  2. macrumors 68040

    lee1210

    #2
    file
    new project
    Command line utility
    ->C++ tool

    should do it.

    -Lee
     
  3. macrumors newbie

    jinksys

    #3
    If you are developing a program that doesn't have a gui, it might be helpful to go into preferences->debugging and set "On Start:" to "Show Console."
     
  4. macrumors 6502a

    #4
    What template are you using? If you choose the command line tool for C++ then it will give you what you need. I only have the seeding version in front of me, so I can't give you the exact name of the template you need, but it is there.
     
  5. macrumors newbie

    #5
    Thanks for all the tips! I'm where I need to be. BTW, I was using the Carbon C++ template before.

    A quick question though. Is there a way to define custom code snippets? I have a comment header that needs to be in the top of each of my programs, but the ones Xcode has built-in are exactly what I need.

    Thanks
     

Share This Page