samedi 25 février 2017

std::round is not a member of std on android

I am using std::round from C++ 11 on a Qt app built for android & iOS. But on android, I get the error that std::round is not a member of std in spite of including the cmath header.

How can I make std::round work on android ? Is there an alternative to std::round ?

Following is my android environment:

ANDROID_NDK_PLATFORM = android-23
NDK version          = r13b
ANDROID_NDK_TOOLCHAIN_VERSION = 4.9

Aucun commentaire:

Enregistrer un commentaire