Summarizing the gcc errors I encountered, to be continued...
1. "dereferencing pointer to incomplete type"
You have written something like
struct node *list;
without ever defining "struct node". That is valid, but it is not valid to use
list->next;
without defining struct type.
ie. You probably missed a "struct node" definition in your .h file.
转载于:https://www.cnblogs.com/sirkay777/archive/2009/03/11/1408389.html