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

用G++編譯項目的時候發生標題上的錯誤,緣由是,這是c++ 11標準的。在給g++傳遞命令行的時候加上-std=c++0x就好了。html 還須要在源碼中#include<memory>c++ 個人cmakelists裏面要這樣改:git    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}  -std=c++0x")github     references:sh
相關文章
相關標籤/搜索