C or C ++ for cross-platform mobile development?

For a cross-platform project on iOS, Android and Windows, I originally wrote some base classes in C ++. However, from what I understand, I will have to write an objective-C wrapper to allow the fast iPhone project to work in xcode. It would be more reasonable if I just rewrote all the original frameworks in C or just wrapped it in C with a better solution. There is no problem trying to determine the best way to save code.

Also, I need to use a cross-platform SDK for mobile development.

+6
source share
1 answer

I would recommend writing in C ++ 11. It is more modern, has great support on the Internet, and you can even compile everything with Cmake. There are many tools to help you with this. My company uses this to develop a framework that compiles on the following platforms:

iOS, Mac OS X, Android (ARM, x86, x64), Windows (x86, x64), Linux (x86, x64)

You can also find a tool here to help you with cross-toolchains so that the code you compile is easily prepared for multiple platforms: https://github.com/ruslo/polly

+4
source

All Articles