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

drupal - using views argument in the view tpl.php file -

php - Posting PHPBB Forum Thread/Post info in a website -

php - Add a blog by sending a mail to a certain emailadress -