1、error: conflicting types for "xxxxxxxxx"
原因一:
原来是因为没有先做函数声明,而函数位于main()之后,在main函数前声明了函数原型后,一切ok.
原因二:
头文件的被循环引用,在引用时考虑清楚包含顺序 。如
#include "netcomm.h"
#include "ticket.h"
ticket.h中引用了netcomm.h中的函数,则netcomm.h在前
原因三:
头文件声明和定义参数稍有不同
2、error: array type has incomplete element type
数组类型不完全
原因:
相关头文件没有定义