In the next few weeks I'd like to port a game using the SDL library to the iPhone. Have any of you successfully ported any C++ code to the iPhone. I believe you can link the code somehow. Can anyone give me a hint as to where I should start? Does anyone know of any examples of this anywhere? Any help would be greatly appreciated.
Check the Apple developer site. C++ files need to have .mm to make things cleaner.
all the UI access on the phone is through Objective-C so you will have to deal with it and interface to it.
Yes, it's doable. I've done this, ported stuff that uses SDL (check out skyrails, I used that things' graphics lib), and c++ works pretty flawlessly.
OpenGL ES has a few quirks which make it different, and porting texture loaders from CrashLanding app takes a while though. CrashLanding app's sound library is actually writtein in c++, you should take a look at that.
All you need to get c++ working is just change the file type into objcpp, once you got the file in xcode. Don't even have to rename it to .mm or whatever.