1、no matching function for call to 没有匹配的构造函数 ,出现这样的问题一般都是,调用函数类型不匹配导致的,修改下即可。
2、candidate is: 你使用函数的时候,和原型不匹配,也就是函数参数不够,或者函数类型的问题。
3、in expansion of macro 这种表示宏错误
4、statement cannot resolve address of overloaded function 调用函数错误
5、
test.cpp:169:4: error: expected ‘;’ at end of input
test.cpp:169:4: error: expected ‘}’ at end of input
test.cpp:169:4: error: expected ‘}’ at end of input
类似于这样的错误是因为 多了一个括号
6、
conflicting declaration
原因1:没有先做函数声明,而函数位于mian()之后,在main函数前声明了函数原型后。
原因2:头文件被循环引用,在应用时考虑包含顺序
原因3:头文件声明和定义参数稍微有不同,例如: 头文件中声明void Hanlder(const chat* bug)
在定义是写作 void Hanlder(char * buf)
这样就会发生conflictiong types for错误
以上是我自己遇到的错误,整理而来,希望对大家有所帮助