Any idea why I am getting this error, Does 4.9.2 gcc compiler supports C++11/14?
Thanks,
/home/maxairb/ql-ol-sdk/ql-ol-crosstool/sysroots/armv7a-vfp-neon-oe-linux-gnueabi/usr/include/c++/4.9.2/type_traits:2051:5: note: ‘std::declval’
declval() noexcept
^
/home/maxairb/ql-ol-sdk/ql-ol-crosstool/sysroots/armv7a-vfp-neon-oe-linux-gnueabi/usr/include/c++/4.9.2/bits/alloc_traits.h:505:24: error: expected primary-expression before ‘const’
std::declval<const _Up&>()))>
^
/home/maxairb/ql-ol-sdk/ql-ol-crosstool/sysroots/armv7a-vfp-neon-oe-linux-gnueabi/usr/include/c++/4.9.2/bits/alloc_traits.h:506:9: error: ‘true_type’ does not name a type
static true_type
^
/home/maxairb/ql-ol-sdk/ql-ol-crosstool/sysroots/armv7a-vfp-neon-oe-linux-gnueabi/usr/include/c++/4.9.2/bits/alloc_traits.h:510:9: error: ‘false_type’ does not name a type
static false_type
^
/home/maxairb/ql-ol-sdk/ql-ol-crosstool/sysroots/armv7a-vfp-neon-oe-linux-gnueabi/usr/include/c++/4.9.2/bits/alloc_traits.h:514:24: error: ‘_M_select’ was not declared in this scope
typedef decltype(_M_select(0)) type;
^
/home/maxairb/ql-ol-sdk/ql-ol-crosstool/sysroots/armv7a-vfp-neon-oe-linux-gnueabi/usr/include/c++/4.9.2/bits/alloc_traits.h:514:24: error: ‘_M_select’ was not declared in this scope
/home/maxairb/ql-ol-sdk/ql-ol-crosstool/sysroots/armv7a-vfp-neon-oe-linux-gnueabi/usr/include/c++/4.9.2/bits/alloc_traits.h:514:61: error: expected ‘(’ before ‘>’ token
typedef decltype(_M_select(0)) type;
^
/home/maxairb/ql-ol-sdk/ql-ol-crosstool/sysroots/armv7a-vfp-neon-oe-linux-gnueabi/usr/include/c++/4.9.2/bits/alloc_traits.h:525:33: error: ‘allocator’ was not declared in this scope
struct __is_copy_insertable<allocator<_Tp>>
^
/home/maxairb/ql-ol-sdk/ql-ol-crosstool/sysroots/armv7a-vfp-neon-oe-linux-gnueabi/usr/include/c++/4.9.2/bits/alloc_traits.h:525:33: note: suggested alternative:
In file included from /home/maxairb/ql-ol-sdk/ql-ol-crosstool/sysroots/armv7a-vfp-neon-oe-linux-gnueabi/usr/include/c++/4.9.2/bits/stringfwd.h:40:0,
from /home/maxairb/ql-ol-sdk/ql-ol-crosstool/sysroots/armv7a-vfp-neon-oe-linux-gnueabi/usr/include/c++/4.9.2/string:39,
from /home/maxairb/branch/max-v2/max/src/bluebox/src/app.h:39,
from /home/maxairb/branch/max-v2/max/src/bluebox/src/app.cc:36:
/home/maxairb/ql-ol-sdk/ql-ol-crosstool/sysroots/armv7a-vfp-neon-oe-linux-gnueabi/usr/include/c++/4.9.2/bits/memoryfwd.h:64:11: note: ‘std::allocator’
class allocator;
application uses stl like this code is failing to complile at #include level. Please see below error. It started from app.cc file and compiling up to cross tool alloc_traits.h file.
Do you think am I missing compiler flag?
Below is c++ compile flag:
set(CMAKE_CXX_FLAGS “${CMAKE_CXX_FLAGS} -ggdb -std=c++11 -Wall -Werror -Wno-error=deprecated-declarations”
Thanks for your support.
In file included from /home/maxairb/ql-ol-sdk/ql-ol-crosstool/sysroots/armv7a-vfp-neon-oe-linux-gnueabi/usr/include/c++/4.9.2/ext/alloc_traits.h:36:0,
from /home/maxairb/ql-ol-sdk/ql-ol-crosstool/sysroots/armv7a-vfp-neon-oe-linux-gnueabi/usr/include/c++/4.9.2/bits/stl_construct.h:61,
from /home/maxairb/ql-ol-sdk/ql-ol-crosstool/sysroots/armv7a-vfp-neon-oe-linux-gnueabi/usr/include/c++/4.9.2/deque:62,
from /home/maxairb/ql-ol-sdk/ql-ol-crosstool/sysroots/armv7a-vfp-neon-oe-linux-gnueabi/usr/include/c++/4.9.2/queue:60,
from /home/maxairb/branch/max-v2/max/src/bluebox/src/bluebox/service.h:44,
from /home/maxairb/branch/max-v2/max/src/bluebox/src/app.h:43,
from /home/maxairb/branch/max-v2/max/src/bluebox/src/app.cc:36:
/home/maxairb/ql-ol-sdk/ql-ol-crosstool/sysroots/armv7a-vfp-neon-oe-linux-gnueabi/usr/include/c++/4.9.2/bits/alloc_traits.h:47:19: error: ‘true_type’ does not name a type
static constexpr true_type
^
/home/maxairb/ql-ol-sdk/ql-ol-crosstool/sysroots/armv7a-vfp-neon-oe-linux-gnueabi/usr/include/c++/4.9.2/bits/alloc_traits.h:51:19: error: ‘false_type’ does not name a type
static constexpr false_type
^
/home/maxairb/ql-ol-sdk/ql-ol-crosstool/sysroots/armv7a-vfp-neon-oe-linux-gnueabi/usr/include/c++/4.9.2/bits/alloc_traits.h:55:31: error: ‘_S_chk’ was not declared in this scope
using __type = decltype(_S_chk<_Alloc, _Tp>(nullptr));
^
/home/maxairb/ql-ol-sdk/ql-ol-crosstool/sysroots/armv7a-vfp-neon-oe-linux-gnueabi/usr/include/c++/4.9.2/bits/alloc_traits.h:55:31: error: ‘_S_chk’ was not declared in this scope
/home/maxairb/ql-ol-sdk/ql-ol-crosstool/sysroots/armv7a-vfp-neon-oe-linux-gnueabi/usr/include/c++/4.9.2/bits/alloc_traits.h:55:44: error: expected primary-expression before ‘,’ token
using __type = decltype(_S_chk<_Alloc, _Tp>(nullptr));
^
/home/maxairb/ql-ol-sdk/ql-ol-crosstool/sysroots/armv7a-vfp-neon-oe-linux-gnueabi/usr/include/c++/4.9.2/bits/alloc_traits.h:55:49: error: expected primary-expression before ‘>’ token
using __type = decltype(_S_chk<_Alloc, _Tp>(nullptr));
^
/home/maxairb/ql-ol-sdk/ql-ol-crosstool/sysroots/armv7a-vfp-neon-oe-linux-gnueabi/usr/include/c++/4.9.2/bits/alloc_traits.h:104:1: error: expected nested-name-specifier before ‘pointer_traits’
_GLIBCXX_ALLOC_TR_NESTED_TYPE(const_pointer,
^
/home/maxairb/ql-ol-sdk/ql-ol-crosstool/sysroots/armv7a-vfp-neon-oe-linux-gnueabi/usr/include/c++/4.9.2/bits/alloc_traits.h:104:1: error: expected ‘;’ at end of member declaration
/home/maxairb/ql-ol-sdk/ql-ol-crosstool/sysroots/armv7a-vfp-neon-oe-linux-gnueabi/usr/include/c++/4.9.2/bits/alloc_traits.h:104:1: error: expected unqualified-id before ‘<’ token
_GLIBCXX_ALLOC_TR_NESTED_TYPE(const_pointer,
^
/home/maxairb/ql-ol-sdk/ql-ol-crosstool/sysroots/armv7a-vfp-neon-oe-linux-gnueabi/usr/include/c++/4.9.2/bits/alloc_traits.h:115:1: error: expected nested-name-specifier before ‘pointer_traits’
_GLIBCXX_ALLOC_TR_NESTED_TYPE(void_pointer,
^
/home/maxairb/ql-ol-sdk/ql-ol-crosstool/sysroots/armv7a-vfp-neon-oe-linux-gnueabi/usr/include/c++/4.9.2/bits/alloc_traits.h:115:1: error: expected ‘;’ at end of member declaration
/home/maxairb/ql-ol-sdk/ql-ol-crosstool/sysroots/armv7a-vfp-neon-oe-linux-gnueabi/usr/include/c++/4.9.2/bits/alloc_traits.h:115:1: error: redeclaration of ‘int TKE::std::allocator_traits<_Alloc>::pointer_traits’
/home/maxairb/ql-ol-sdk/ql-ol-crosstool/sysroots/armv7a-vfp-neon-oe-linux-gnueabi/usr/include/c++/4.9.2/bits/alloc_traits.h:104:1: note: previous declaration ‘int TKE::std::allocator_traits<_Alloc>::pointer_traits’
_GLIBCXX_ALLOC_TR_NESTED_TYPE(const_pointer,
^
/home/maxairb/ql-ol-sdk/ql-ol-crosstool/sysroots/armv7a-vfp-neon-oe-linux-gnueabi/usr/include/c++/4.9.2/bits/alloc_traits.h:115:1: error: expected unqualified-id before ‘<’ token
_GLIBCXX_ALLOC_TR_NESTED_TYPE(void_pointer,
^
/home/maxairb/ql-ol-sdk/ql-ol-crosstool/sysroots/armv7a-vfp-neon-oe-linux-gnueabi/usr/include/c++/4.9.2/bits/alloc_traits.h:126:1: error: expected nested-name-specifier before ‘pointer_traits’
_GLIBCXX_ALLOC_TR_NESTED_TYPE(const_void_pointer,