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

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -