SRC\file.c:144: error: [#136] struct <name> has no field <name> Reason:
Example 1: enum { RED = 0U, YELLOW, NUMBER_OF_COLORS; } colors; typedef struct { char name[20]; uint calories; /* "Color" was changed to "calories" */ } fruitType; void func (void) { fruitType orange; orange.color = YELLOW; /* Struct doesn't have "color" field anymore*/ } Example 2: typedef struct { char name[20]; int calories; } fruitType; void func (void) { fruitType orange; orange.colories = 200; /* Here is a typo in the field name */ }
0 Comments
Your comment will be posted after it is approved.
Leave a Reply. |
AuthorWarnings are important! Archives
May 2017
Categories |