I have successfully compiled SDL for Android using the example, which uses C. Is it possible to use C++ too?
I am trying to port a C++ game which uses SDL 2 to Android.
If it is possible, how can I do this?
The principles are exactly the same:
In general ndk_build can compile both c and c++, so it doesn't really matter which one you choose. I've actually only used SDL2 bundled with c++ code and it compiles perfectly.