I've got a struct
Which gives me the following error message in clangCode:typedef struct _entry{ bool is_submenu; gchar *name; gchar *command; gchar *icon_path; struct _entry *subentry; } entry;
Makes no sense to me. GCC gives the same error. I tried out a minimal example...Code:src/common.h:5:16: error: redefinition of '_entry' typedef struct _entry ^ src/common.h:5:16: note: previous definition is here typedef struct _entry ^
And it compiles just fine. Any ideas?Code:typedef struct test_struct { int some_data; struct test_struct *next_struct; } test; int main(void) { return 0; }



1Likes
LinkBack URL
About LinkBacks


