Monday, March 11, 2013

[Android] Note: limits: No such file or directory

If you get the following error:

fatal error: limits: No such file or directory

Or

error: 'numeric_limits' is not a member of 'std'

The solution is to include ( not or ). Then add

"APP_STL := stlport_static" to your jni/Application.mk 

Adding it to your Android.mk file does not work. I created an Application.mk file, with just that line and it worked.

Solution from:

https://groups.google.com/forum/#!msg/android-ndk/4cIVid0P3go/LY3htUx_qMgJ

No comments: