Search code examples
xcodexcode5

How to run C++ from Xcode 5.02


I haven't used Xcode in awhile and overall new to macs. How od I run a C++ program from Xcode V5.02. I don't see a command line function anymore?


Solution

  • Xcode supports c++ in objective-c projects through .mm files, but not on its own.

    UPDATE: Guess I was wrong, see here: http://neilmonday.blogspot.com/2008/02/how-to-compile-basic-c-programs-in.html and here: How do I create a new C++ project in XCode?

    Run xcode-select --install to make sure you command line tools installed on the system.