Compile errors: "‘for’ loop initial declaration used outside C99 mode"
(I'm creating this bug on behalf of ssp from [[http://mooseyard.com/Jens/2009/04/myprojects-now-hosted-on-bitbucketorg|an existing comment thread on my blog]]...)
[[http://earthlingsoft.net/ssp/blog/|ssp]] wrote:\ "Unfortunately it fails to compile on my Machine (X.5 / Xcode 3.1.2) with plenty of “‘for’ loop initial declaration used outside C99 mode” errors. I suppose that fiddling with the right compiler option may make that one go away (I think the ‘problem’ are counting variable declarations inside the ‘for’ statement), but I’ll just note that I find open source stuff much more convincing when it compiles right away."
"I didn’t even compile your code inside my project. It looks like the compiler options in your project are set to ‘default’ but really want to be set to ‘C99′. I have no clue about XCode intricacies but perhaps you have an inadvertent ‘C99′ default setting on your system which makes things work out of the box. I assume that making that setting explicit could avoid the problem."
"I re-downloaded the project to make sure I didn’t mess anything up and those compilation errors appeared again. When looking at the Inspector for the project the setting for the C Language Dialect is ‘Compiler Default’. Setting it to xxx99 solved the problem for me."