0
編譯器是gcc,我使用的是舊版本的Linuxtypedef結構上的錯誤。前 '*' 標記
typedef struct strlist strlist;
struct strlist
{
char *data;
time_t *timestamp;
struct strlist *next;
}
strlist * list_directory(char *dirname)
{
//do something
}
的錯誤信息是:
error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
,它的上線:
strlist * list_directory(char *dirname)