Why are some std functions missing when compiling for android?

For example, I’m having this error:

‘stoi’ is not a member of ‘std’

Also: ‘strtol’ is not a member of ‘std’

If you’re compiling for android change APP_STL := gnustl_static to APP_STL := c++_static in proj.android/jni/Application.mk

Thank you, this seems to work.

What negative consequences could this have?
Why is this not the default?
Could this be a problem if I want to import cocos2d-x as a static lib via the new genlibs command?

Here’s a discussion on the topic

Yes, thanks. Thanks to your comment I already found it and posted there.