Using std::string in Android Packaging

Heya,

I am integrating a 3rd party library that uses a lot of std strings, but when packaging for Android, I get various errors like :

  • error : no member named ‘stoll’ in namespace ‘std’
  • error : no member named ‘to_string’ in namespace ‘std’

It’s my believe that UE4 uses gnustl and I found the following comment on the webs:

This is a known issue if using gnustl_shared and gnustl_static on Android. If you use gnustl, you cannot use std::to_string, .std::round and so on.

So my question, is it possible to get strings to build on Android using Unreal? Im not a android developer so lots of hand-holding with any answers is much appreciated.

Thanks.

I got the same mistake in ue4.21 package,I’d like to know if you have solved it now. Please let me know

Sadly I never solved it, I had quite a big project on the go but unfortunately, this problem delved too deep into Unreal Android compiling and I couldn’t solve it. I am still hoping to get the answer one day.

Haven’t explicitly tested this one out, but I found this guide online. You will need to have the Unreal Build from Source, and you will need to modify some of the code there, so it may not be worth it.

Haven’t explicitly tested this one out, but I found this guide online. You will need to have the Unreal Build from Source, and you will need to modify some of the code there, so it may not be worth it.