1.编译warning: backslash-newline at end of file
- 解决方法:代码文件结尾加上一个空行
2. 编译error: 'A' which is of non-class type 'B'
- 解决方法:A不是B类型中的成员,看下类型是否对应
3. 编译error:multiple definition of
- 解决方法:多处定义, 头文件中定义了某个变量,多处引用这个头文件