Sunday, June 14, 2009

Initial declaration used outside C99 mode

C99 is a recent standard of C than the one GCC which is used by default.

E.g.Declaring the loop counter inside the for loop is only allowed in C++ files
unless you tell GCC to use the C99 standard. For C and ObjC, you need
to declare i outside the loop.

0 comments:

Post a Comment