I Qt app which works on android. I am writing code which is pretty much C++ 14 standard. Using functions like make_unique & make_shared as well.
However when I try to use std::stoul, it only fails to compile on android. It compiles & works for clang on osx & iOS. Works for Microsoft compiler on windows. But only fails to compile on Android with the following error saying :-
error: 'stoul' is not a member of 'std'
My Qt app uses latest NDK r13b to compile the code for android.
I searched around quite a bit & found similar problems people are facing like here & here. But, I need a way to resolve this on a Qt app. for android
I added the following to my Qt App's .pro file. But doesnt work.
How can I make std::stoul compile in a Qt app for android using latest NDK r13b ?
Also tried adding the following block to my app's .pro file. But doesn't help.
android {
QMAKE_CXXFLAGS_RELEASE += -std=c++1y
QMAKE_CXXFLAGS_DEBUG += -std=c++1y
CONFIG += c++14
QMAKE_APP_FLAG +=c++_static
}