error: ‘shared_ptr’ in namespace ‘std’ does not name a type

用G++编译项目的时候发生标题上的错误,缘由是,这是c++ 11标准的。在给g++传递命令行的时候加上-std=c++0x就好了。c++ 还须要在源码中#include<memory>git 个人cmakelists里面要这样改:github    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}  -std=c++0x")shell     references:p
相关文章
相关标签/搜索