Skip to content Skip to sidebar Skip to footer

If My Code Uses RTTI Then It Will Not Work On Android?

I read in Android Native Development Kit Cookbook that: By default, Android provides minimal C++ support. There's no Run-time Type Information (RTTI) and C++ exceptions support,

Solution 1:

You can turn it on, its off by default. To turn it on, add LOCAL_CPPFLAGS += -frtti to your makefile. As usual, code with this flag on will take more memory, be bigger on disk, and be slightly slower than code with it off.


Post a Comment for "If My Code Uses RTTI Then It Will Not Work On Android?"