Possible Duplicate:
How do I fix “for loop initial declaration used outside C99 mode” GCC error?
Why must I declare a loop variable outside of the for loop statement? I am getting a gcc (MacOSX) error which reads:
error: ‘for’ loop initial declaration used outside C99 mode
If I define my loop variable outside of the loop statement then gcc stops complaining.
forloop clause.