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?
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It only takes a minute to sign up.Sign up to join this community
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.