1.編譯warning: backslash-newline at end of file
- 解決方法:代碼文件結(jié)尾加上一個(gè)空行
2. 編譯error: 'A' which is of non-class type 'B'
- 解決方法:A不是B類型中的成員,看下類型是否對(duì)應(yīng)
3. 編譯error:multiple definition of
- 解決方法:多處定義, 頭文件中定義了某個(gè)變量,多處引用這個(gè)頭文件