2009年12月29日 星期二

[C] 錯誤訊息 stdio.h, -std=c99

錯誤訊息:
/usr/include/stdio.h:397: error: expected identifier or ‘(’ before ‘int’
這裡?!
extern int dprintf (int __fd, __const char *__restrict __fmt, ...)
__attribute__ ((__format__ (__printf__, 2, 3)));


加了compile時加-std=c99就好了...

沒有留言: