no type named 'shared_ptr' in namespace 'std'

核能气质少年 提交于 2019-12-01 06:49:48

selecting libc++ fixes the problem see screenshot

Apple ship a very old version of libstdc++ that doesn't support C++11, so if you use libstdc++ you can't use C++11 features.

jeff

In xcode you must use #include <memory>, you can not use #include <memory.h>. Please check this.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!