error: 'for' loop initial ....
doggiedoc
Posts: 2,243
...declarations are only allowed in C99 mode.
Note: use option -std=c99 or -std=gnu99 to compile your code.
How do I select this option? I've tried adding -std=c99 to "Other Compile Options" but get waaaay more errors after that.
Thanks!
Paul
PS: obviously I could just declare the variable in a separate statement but the thing is I kinda like declaring it inline with the 'for' statement.
PPS: Using Mac OS 10.8 and SIDE version 0.7.2
Note: use option -std=c99 or -std=gnu99 to compile your code.
How do I select this option? I've tried adding -std=c99 to "Other Compile Options" but get waaaay more errors after that.
Thanks!
Paul
PS: obviously I could just declare the variable in a separate statement but the thing is I kinda like declaring it inline with the 'for' statement.
PPS: Using Mac OS 10.8 and SIDE version 0.7.2
Comments
well, inline declaration works, but that variable is declared only if first loop and only for that loop!
you need to declare it again in second loop! line 93
and for warnings, without more code it's hard to tell...
my 1.2 cents...