Unsolved C++ 14 support missing with Qt 5.6
-
I upgraded Qt to 5.6 on my machine. It suddenly started complaining about the code written for C++ 14 & its an issue only on android. The same code builds well for ios(clang). I have my CONFIG set as "CONFIG += c++14" in .pro. But it still seems to be forcing back to C++11.
I upgraded my ndk to r11 & updated qt preferences to use ndk r11 with ndk version 24 that is latest . But still does not help.
Is there any upgrade coming up or any work around for this ?
-
I have this problem too in both Qt 5.6.0-rc and Qt 5.6.0. So far I've found no workarounds.
-
Hi,
The NDK CPP Support page talks about c++11 but not c++14 so it might not be supported. How there seems to be a ndk alternative named Crystax. I don't know it but might be worth a look.
Hope it helps
-
Hi,
what seems to be the error here is that flag
CONFIG += C++14
in the .pro file doesn't produce the-std=c++1y
argument in the call to GCC. It is also the case that using Qt 5.5.1 with itCONFIG += c++14
yields the correct-std=c++1y
. See:
https://forum.qt.io/topic/64796/qt-5-6-qmake-and-config-c-11-is-it-safe-to-remove-this/5I think there is some erroneous parsing of the config flag
C++14
in Qt 5.6 that is responsible for this, and thus Crystax NDK wouldn't really help.Regards,
Tom -
The parsing isn't wrong. It's
c++14
with a lower case c.Did you check that Android provides support for C++14 ?