Useless' answer に関するコメントから:
私のヘッダーファイルから:
typedef struct ALMConfStruct {
uint8_t updateMode;
uint8_t flashPgSize;
uint8_t flashMaxPagesSize;
uint8_t IntelRecsPerPg;
fptr_t appResetAddr;
uint16_t appEndAddr;
uint8_t comIntf;
}ALMConfStr;
あなたのstruct
タグはであり、そうではALMConfStruct
ありませんALMConfStr
struct ALMConfStr
struct
新しい不完全型を宣言します。を削除するか、コードでstruct
使用してサイズを決定します。struct ALMConfStruct
uint8_t clStructCount = sizeof(((ALMConfStr *) 0)->IntelRecsPerPg);
また
uint8_t clStructCount = sizeof(((struct ALMConfStruct *) 0)->IntelRecsPerPg);