0

Possible Duplicate:
Is it possible to program iPhone in C++

iOS iPhone 4th. If I just open the Xcode 3 or 4, and write a program in c++, Xcode compile it and run?

Community
  • 1
  • 1

1 Answers1

0

You can create a new project by using template but they are Objective-c Moreover, unless you have a developer payed account, it will only run on the Iphone Simulator

Andrea Sindico
  • 7,358
  • 6
  • 47
  • 84
  • You mean in Objective-C++ or Objective-C? I found online, so if I'm writing in c++ code, it will work, as Objective-C++, c++ understands the code, am I right? – Saulius Apr 23 '11 at 14:12
  • Here something about c++ iphone [link] (http://iphonedevelopertips.com/cpp/c-on-iphone-part-1.html). So I can write and compile c++ code with the iOS SDK in Xcode without Objective-C ? – Saulius Apr 23 '11 at 14:41
  • Xcode project settings is selected GCC (C/C++ Compiler) version GCC 4.2. Is that mean I can write and run iPhone app in c++ without Objective-C ? In iPhone Simulator of course. – Saulius Apr 23 '11 at 15:22
  • Everywhere is C++ and Objective-C together mentioned, but not showed just simply C++ for iPhone. – Saulius Apr 23 '11 at 15:37
  • I actually do not know it you can develop a pure C++ app for iphone. But my guess is that you can't since even the basic stubs to interact with the IOS are Objective-C classes. Anyway don't be afraid for that, it is quite easy to understand and very powerful to use – Andrea Sindico Apr 23 '11 at 17:00
  • I'm just starting to learn c++. Objective-C will leave at leisure – Saulius Apr 23 '11 at 19:35