#error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
add_definitions(-std=c++11)
perhaps
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
perhaps
set(CMAKE_CXX_STANDARD 11)
Read More:
- Cmake Error The C compiler identification is GNU 7.5.0 — The CXX compiler identification is unknown
- [Solved] CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
- [Solved] fatal error C1189: #error: STL1003: Unexpected compiler, expected C++ compiler
- Visual Studio 2012 error C4996: ‘scanf’: This function or variable may be unsafe.
- error: #error PCL requires C++14 or above [Solved]
- Error: # error PCL requires C++ 14 or above
- Grpc Compilation issues: “C++ versions less than C++11 are not supported.
- [Solved] swiper Error: The requested module ‘react’ is expected to be of type CommonJS, which does not support named exports. CommonJS modules can be imported by importing the default export
- Tensorflow C++:You must define TF_LIB_GTL_ALIGNED_CHAR_ARRAY for your compiler
- [Solved] MindSpore Error: ReduceMean in the Ascend environment does not support inputs of 8 or more dimensions
- [Solved] c++: internal compiler error: Killed (program cc1plus)
- (Keil MDK) UCOS floating point support abnormal solution
- [Solved] Error: error C2601: ‘b‘ : local function definitions are illegal error C2063: ‘b‘ : not a function
- [Solved] Doris StreamLoad Error: load by MERGE or DELETE need to upgrade table to support batch delete
- How to Solve Fatal error stdatomic in C/C++ Compilation
- How to Solve Error:options.query cannot be used with loaders
- Error: Your CLT does not support macOS 11.6 [How to Solve]
- [Solved] error: package android.support.design.widget does not exist
- [Solved] MindSpore Error: `half_pixel_centers`=True only support in Ascend
- [Solved] Android Error: import android.support.annotation.NonNull