c - expected specifier-qualifier-list before -
i have struct type definition:
typedef struct { char *key; long cantag; long canset; long allowmultiple; conftype *next; } conftype;
when compiling, gcc throws error:
conf.c:6: error: expected specifier-qualifier-list before ‘conftype’
what mean? doesn't seem related other questions error.
you used conftype before declared it. (for next). instead, try this:
typedef struct conftype { char *key; long cantag; long canset; long allowmultiple; struct conftype *next; } conftype;
Comments
Post a Comment