error: ‘std::shared_ptr’ has not been declared

ubuntu16.04 环境下,编译C++代码出错

解决方法:

#include <tr1/memory>

猜你喜欢

转载自blog.csdn.net/qq_35759574/article/details/84302833