-
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'localeconv' is not supported by NDK for SDK <=20 #638
Comments
Related: #631 |
I am confused (I have no experience with NDK). I am using the following files: Application.mk
Android.mk
With android-ndk-r15b, I can compile the
(ignore the deprecation warnings). What can I do to reproduce this issue? |
Instead of goolge's android ndk, using CrystaX NDK 10.3.x maybe ok! |
By the way, this issue is nothing about Android SDK but Android NDK. |
So with which version can I reproduce the issue? |
what i have tried is:
maybe, "android-19" is also the same~ |
And that was with the official NDK? |
yes, official! I am not aware of the features of the latest version of Google Android NDK! |
Guys,if you use Android Studio,the fix to this issue is to use Clang toolchain and STL = C++_static. In this case there is no need to refactor anything in the lib. Clang's STL fully supports locale.h |
how about c++_share? |
Didn't try it.But I think it should work too.
…On Jul 10, 2017 2:48 PM, "MasterYi" ***@***.***> wrote:
how about c++_share?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#638 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAawgIZUTx1SeuGoXS05BQgOmMGtsIDpks5sMg-bgaJpZM4OFKFm>
.
|
@sasmaster Does this mean this issue can be closed? |
Yes.
On Jul 11, 2017 9:00 AM, "Niels Lohmann" <[email protected]> wrote:
@sasmaster <https://github.com/sasmaster> Does this mean this issue can be
closed?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#638 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAawgAOHzuhJ6fiyAU4PfVE-CaVMNDTdks5sMw-AgaJpZM4OFKFm>
.
|
SFINAE workaround for missing lconv support in Android (gcc + libstdc++) See: fmtlib/fmt@2fd6c0b Discussion: nlohmann#638 (comment) Note: Clang + libc++ should work (where available) Returns the thousands separator for the current locale. On android (gcc/libstdc++) the lconv structure is stubbed using an empty structure The test is for the size only, not for the presense of thousands_sep in std::lconv, because if one would add thousands_sep at some point, the size of structure would be at least sizeof(char*) Ditto for decimal_point.
SFINAE workaround for missing lconv support in Android (gcc + libstdc++) See: fmtlib/fmt@2fd6c0b Discussion: nlohmann#638 (comment) Note: Clang + libc++ should work (where available) Returns the thousands separator for the current locale. On android (gcc/libstdc++) the lconv structure is stubbed using an empty structure. The test is for the size only, not for the presense of thousands_sep in std::lconv, because if one would add thousands_sep at some point, the size of structure would be at least sizeof(char*) Ditto for decimal_point.
The NDK STL for Android 19 seems to be incomplete.The locale.h is incomplete for sure.It does have a declaration of that method but the std llib probably doesn't,which causes linker error.It would be nice if this lib could support also older Android SDKs.Thanks!
The text was updated successfully, but these errors were encountered: