Android NDK抱怨std :: nearbyint不是std的成员 [英] android NDK complains std::nearbyint is not a member of std
问题描述
我要在中使用 std :: nearbyint android gcc ,但是ndk抱怨 std :: nearbyint
不是std的成员。我的代码&中包含了 cmath
标头
I want use std::nearbyint in android gcc but then ndk complains that std::nearbyint
is not a member of std. I have the cmath
header included in my code & the same builds well for OSX.
是否可以解决此问题?是否可以编写自己的版本std :: nearbyint
?
我在Android上使用 NDK14b
Is there a workaround for this ? Is possible to write my own version of std::nearbyint
?
I am using NDK14b
on android
推荐答案
https://github.com/android-ndk/ndk/issues/82 。 GNU的libstdc ++的功能卫士过于广泛。我们正在努力稳定NDK的libc ++解决方案,因此我们可以完全转向它。
This is part of https://github.com/android-ndk/ndk/issues/82. GNU's libstdc++ is overly broad with their feature guards. We're working on stabilizing the NDK's solution for libc++ so we can just move entirely over to that instead.
这篇关于Android NDK抱怨std :: nearbyint不是std的成员的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!