问题
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.
Is there a workaround for this ? Is possible to write my own version of std::nearbyint
?
I am using NDK14b
on android
回答1:
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.
来源:https://stackoverflow.com/questions/43739081/android-ndk-complains-stdnearbyint-is-not-a-member-of-std