Oleg V
06/28/2013 1:57 PM
post102774
|
Dear community
I'm trying to compile a piece of code based on C++ tuples. So in Momentix 4.7.0 I'm creating a new QNX C++ Project,
adding my sources to project and try to compile.
It fails on not being able to find <tuple> header, although the header seems to be there
/qnx650/target/qnx6/usr/include/c++/4.4.2
Then I found somewhere on the forums I need to switch to "Link against CPP Library" to force -Y_gpp option and hence
witch to right GPP C++ includes. Indeed this worked and it can see the "tuple" header. However it falls on the following
now:
c++0x_warning.h:31:2: error: #error This file requires compiler and library support for the upcoming ISO C++ standard, C
++0x. This support is currently experimental, and must be enabled with the -std=c++0x or -std=gnu++0x compiler options.
So I tried to pass -std=gnu++0x (and -std=gnu++0x) to compiler options and neither worked. It fails with:
cc: unknown option: -std=gnu++0x
Any ideas?
Thanks
|
|
|