05-15-2012 12:06 PM
Does the QNX compiler support any C++11? I mean I have tried these two options:
-std=c++0x and -std=gnu++0x but I couldn't get it to work?
Are they supported and if they are, where should I exactly put them in Momentics?
07-27-2012 01:34 PM
~nudge~
I would like to know the answer to this as well.
07-27-2012 02:29 PM
My research shows that it doesn't. What a shame. I hope they would upgrade qcc to version 4.7 and enable C++11 some day.
09-06-2012 04:42 PM
Anyone has success with 10.0.6 version of SDK? It has all the headers and gcc 4.6.3 and I added:
INCLUDEPATH += $$(QNX_TARGET)/usr/include/c++/4.6.3
INCLUDEPATH += $$(QNX_TARGET)/usr/include/c++/4.6.3/arm-unknown-n to-qnx8.0.0eabi
QMAKE_CXXFLAGS += -Wc,-std=c++0x
to my .pro file, but anyway I get the following error during build:
opt/bbndk-10.0.6/target_10_0_6_384/qnx6/usr/include/c++/4.6.3/bits/stl_relops.:68: Parse error at "std"
09-06-2012 08:12 PM
Seriously? They have updated the compiler? But why not version 4.7. Well, if I am not mistaken, Qt5 requires newer gcc. But qcc lacks the option to enable C++11. Has that changed now?
09-06-2012 09:14 PM
SDK 10.0.6 contains GCC 4.6.3, To enable some of C++11 features through qcc wrapper use -Wc,-std=c++0x parameter. I've successfully compiled some lambda stuff, etc, but got stuck with STL headers. ![]()
09-07-2012 02:06 AM
12-06-2012 03:13 PM
Hi,
C++11 is still not supported?
12-07-2012 07:41 AM
There is no STL support for it I think.
01-17-2013 07:20 AM
The gcc 4.4.2 in the BB2.1 SDK supports -Wc,-std=c++0x as well, but you'll run into the same troubles as mentioned above with the BB10 SDK. It almost feels that the std=c++0x is simply ignored.