Possible Duplicate:
Is it possible to program iPhone in C++
I have an existing C++ code that i want to re-use in iPhone/iPade application (and don’t want to have to rewrite it all in Objective C),How can I include this code into my iPhone application?
I tried with Xcode 4.5, but I had several compilation error.
I wrote a C++ wrapping for a objective-c class recently.
The important thing about separating oc and C++ is that you shouldn’t include C++ .h files in oc .h files, and to do this you can use void* pointers.
see:
Calling Objective-C method from C++ method?