比较上头的一个问题,找了好久,错误代码如下:
2 #include "NewsFilter.h"
3 #include "log.h"
4 #include "sign.h"
错误提示如下:In file included from ../common//log/include/log.h:4, from NewsFilter.cpp:3:
意思是说log.h文件中出错了,在log.h中找了半天没找着问题
后来才发现,原来错误是出现在“NewsFilter.h”中,是由于声明class CNewsFilter {} 后面少了";"导致的。