Android Ndk + Two Shared Libraries + Rtti + Dynamic Cast = Impossible
I've been at this for 4 hours so far on a Sunday. I'm about to give up. I've tried literally every post I've found on the internet and this simply will..not..work! Any instance of
Solution 1:
This is probably https://android.googlesource.com/platform/ndk/+/master/docs/user/common_problems.md#rtti_exceptions-not-working-across-library-boundaries. The C++ ABI makes it tricky to get RTTI right when dynamically loading libraries. Each of your types must have a key function (a virtual, non-inline, non-destructor method) for RTTI to work across shared library boundaries.
Post a Comment for "Android Ndk + Two Shared Libraries + Rtti + Dynamic Cast = Impossible"