Cannot locate atof() on android?

Cannot locate atof() on android?
0

Tried to move my project from iOS to android. Everything was good but error happens when I tried to run on android simulator. It complains cannot locate atof():

09-28 16:09:45.970: E/AndroidRuntime(714): Caused by: java.lang.UnsatisfiedLinkError: Cannot load library: reloc_library[1306]: 37 cannot locate ‘atof’…

Any solution?

Thanks.

btw, I’m using cocos2d-x 2.2.5

this might help.

Had the same problem with Cocos2d V3.3 , NDK10d

I noticed I compiled with “android-21” target.

Changed to “android-19” and build it again. And no errors for Android V4.x

Maybe you should swutch to the new C++11 functions:
http://www.cplusplus.com/reference/string/stof/