Forums » C++ Framework » Using gnustl_static possible? »
| A Slushie | Using gnustl_static possible? | ||
|---|---|---|---|
|
Added by A Slushie over 1 year ago
Basically I would like to enable RTTI support but I am wondering if using gnustl_static will cause issues with the Cocos2d-x engine. If so, what are those issues? Thanks. |
||
| Milda Genius | RE: Using gnustl_static possible? | ||
|
Added by Milda Genius over 1 year ago
We have anabled it in our project (Android, Win), but no issue yet. If somebody has issue, please report it. Thanks |
||
| Minggo Zhang | RE: Using gnustl_static possible? | ||
|
Added by Minggo Zhang over 1 year ago
If you need RTTI, I don't think you should replace stl lib. NDK-ROOT/docs/CPLUSPLUS-SUPPORT.html says:
Similarly, the NDK toolchain supports C++ RTTI (RunTime Type Information)
since NDK r5, but all C++ sources are built with -fno-rtti by default for
compatibility reasons. To enable it, add the following to your module
declarations:
LOCAL_CPPFLAGS += -frtti
Or more simply to your Application.mk:
APP_CPPFLAGS += -frtti
I have not tested for it. |
(1-2/2)