在.H:错误:不完全类型不允许
typedef struct token_t TOKEN;
在.C:
#include "token.h"
struct token_t
{
char* start;
int length;
int type;
};
在main.c中:
#include "token.h"
int main()
{
TOKEN* tokens; // here: ok
TOKEN token; // here: Error: incomplete type is not allowed
// ...
}
我得到的错误最后一行:
Error: incomplete type is not allowed
怎么了?
发布与你正在编译 – danish 2014-10-18 11:47:17