Xcode question ...

Discussion in 'Mac Apps and Mac App Store' started by Fender2112, Nov 12, 2003.

  1. Fender2112 macrumors 6502a

    Fender2112

    Joined:
    Aug 11, 2002
    Location:
    Charlotte, NC
    #1
    I'm trying to use Xcode to creat simple c++ source files for a class I'm taking. I've been using Code Warrior which allows me to set up a standard c++ console template. How do I do this with Xcode? A standard c++ console does not seem to a a standard template option for Xcode.

    Someone mentioned in another thread that they use gcc as their compiler. Is gcc "built" into Xcode or is a stand alone IDE , like Code Warrior?

    Keep in mind that I'm an extreme novice in programming. I use Code Warrior at home on my Mac and Visual Studio on a PC in class. Any references or suggestions the "Console" are a bit beyound my understanding.

    A litte help or nudge in the right direction would be much appreciated.

    Thanks
     
  2. bousozoku Moderator emeritus

    Joined:
    Jun 25, 2002
    Location:
    Gone but not forgotten.
    #2
    Xcode and CodeWarrior are both IDEs. Integrated Development Environments allow a (more-or-less) cohesive melding of programming tools, including editors, compilers, and linkers.

    Xcode invokes gcc to compile code, CodeWarrior invokes mwcc to do the same. You can call them manually at any shell prompt or let the IDE do it for you.
     
  3. Fender2112 thread starter macrumors 6502a

    Fender2112

    Joined:
    Aug 11, 2002
    Location:
    Charlotte, NC
    #3
    That's what I thought.

    As for my other question. With Code Warrior, I can open a new project and set the target as a "std c++ console". With Xcode, I seem to have every option except this.

    I could start from scratch with an empty project. But that is a bit beyond my skills. I may create a blank project with Code Warrior. Then import it to Xcode and use it as a template. Does this sound practical?
     
  4. ksz macrumors 68000

    Joined:
    Oct 28, 2003
    Location:
    San Jose, CA
    #4
    XCode does have an option to create a C++ console application. Look further down in the new project dialog box under the "Tools" category. You'll find a console project type listed there.
     
  5. ksz macrumors 68000

    Joined:
    Oct 28, 2003
    Location:
    San Jose, CA
    #5
    Correction: Choose "C++ Tool" which builds a console app.
     

Share This Page