User forums > Help
How to change codeblocks to c99 standard?
(1/1)
sourlemong:
I am getting the error:
G:\c\Project2\one.c:113: error: 'for' loop initial declaration used outside C99 mode
I understand that I must specify codeblocks to use c99, so I went to Settings>Compiler and debugger. In 'other options' I've typed in '-std=c99'. Then when I try to compile again, the same error comes up again.
Could someone help? Thanks!
darthdespotism:
Which Compiler do you use?
infausto:
very simple. In the project properties (right click over project->properties) click "Project's build options..." button, then in "Compiler settings" tab, click in "Other options" sub-tab. Type "-std=c99" in text area and thats all.
cheers!!.
thomas:
Well, that is exactly what he has done, according to the original post (and it's the right thing to do, too, for gcc).
What does the full commandline shown in the log window look like?
infausto:
--- Quote from: thomas on October 23, 2007, 08:47:05 am ---Well, that is exactly what he has done, according to the original post (and it's the right thing to do, too, for gcc).
What does the full commandline shown in the log window look like?
--- End quote ---
nop, read again the first post. sourlemong specify "-std=c99" option in 'Compiler and debugger...' over the settings menu of C::B and not over the project 'context menu->Properties'. What de difference? Think i have read once in C::B wiki when the user change options over the globlal settings of the compiler ('Compiler and debugger...') the changes take effect in the next NEW project created and not in ones created before of that change.
i 'em right??
salute.
Navigation
[0] Message Index
Go to full version