for loop initial declaration used outside C99 mode

解决办法:

右键点击项目->Properties->C/C++ Build -> Settings -> Tool Settings -> GCC C Complier -> Miscellaneous

在 "Other flags" 中追加 (空格)-std=c99

你可能感兴趣的:(for loop initial declaration used outside C99 mode)