android NDK complains std::nearbyint is not a member of std

此生再无相见时 提交于 2019-12-12 04:08:14

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!