Tag: sdcc

sdcc不接受代码

我有SDCC的问题。 我的代码(我试图从另一个编译器移植)使用具有灵活数组成员的结构。 但是,当我尝试编译以下代码时: /** header of string list */ typedef struct { int nCount; int nMemUsed; int nMemAvail; } STRLIST_HEADER; /** string list entry data type */ typedef struct { int nLen; char str[]; } STRLIST_ENTRY; /** string list data type */ typedef struct { STRLIST_HEADER header; STRLIST_ENTRY entry[]; } STRLIST; // By the way, […]