比较上头的一个问题,找了好久,错误代码如下:
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 {} 后面少了";"导致的。

本文记录了一次解决C++编译过程中遇到的错误经历,详细解析了由于缺少分号而导致的编译失败问题,并提供了具体的排查思路。
1827

被折叠的 条评论
为什么被折叠?



