我擦,这也是个奇葩问题啊,搞得我几乎要疯掉
现象
就是写几行C++代码,然后引用了几个库,有两个头文件
A.h里有这么两句
#include <string>
#include <sstream>
B.h里面有这么几句
#include <string>
#include <map>
#include <list>
#include "A.h"
然后编译,就出现了这个错误no member named 'clock_t' int he global namespace
我什么跟什么嘛,这尼玛stl库都不能用啊,然后哥哥又各种查资料,各种尝试,最后设置一下就解决了
解决办法
打箭头的地方看到了没,修改成noe-recursive就好了