SRC\file.c:601: error: [#154] expression must have struct or union type Reason: If you are using array of "structs", then you forgot to mention an index to the array element, when accessing the memeber of this struct element. Example: typedef struct { double weight; int count; } fruitType; fruitType fruits[2] = {{0.3, 3}, {1.2, 6}}; void func(void) { fruits[0].weight = 0.5; fruits.count = 3u; /* Index to array is missing */ }
0 Comments
Your comment will be posted after it is approved.
Leave a Reply. |
AuthorWarnings are important! Archives
May 2017
Categories |