Forum > C++ > Using gnustl_static possible?

Using gnustl_static possible?

By DevSilenti Posted 2011-10-20 11:30 Comments 2
  • Posts: 8

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.

  • Posts: 105

#1 RE: 2011-10-21 11:59

We have anabled it in our project (Android, Win), but no issue yet.

If somebody has issue, please report it.


  • Posts: 2082
  • Location: Xiamen, China

#2 RE: 2011-10-22 06:31

If you need RTTI, I don’t think you should replace stl lib.


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

    LOCAL_CPPFLAGS += -frtti

Or more simply to your

    APP_CPPFLAGS += -frtti

I have not tested for it.

Loggin to reply

Copyright © 2010 - 2013 Cocos2d-x.orgClustrmaps