How To Change Codeblocks To C99 Standard?
Maybe your like
Code::Blocks Forums
Welcome, Guest. Please login or register.Did you miss your activation email? 1 Hour 1 Day 1 Week 1 Month Forever Login with username, password and session length
Logged
Logged
Logged
Logged "We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."
Logged
Welcome, Guest. Please login or register.Did you miss your activation email? 1 Hour 1 Day 1 Week 1 Month Forever Login with username, password and session length News:
Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!
- Code::Blocks Forums »
- User forums »
- Help »
- How to change codeblocks to c99 standard?
- Send this topic
Topic: How to change codeblocks to c99 standard? (Read 66171 times)
sourlemong
- Guest
How to change codeblocks to c99 standard?
« on: October 21, 2007, 12:49:01 pm » I am getting the error: G:\c\Project2\one.c:113: error: 'for' loop initial declaration used outside C99 modeI 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!
Logged
darthdespotism
- Almost regular


- Posts: 163
-
Re: How to change codeblocks to c99 standard?
« Reply #1 on: October 21, 2007, 01:53:47 pm » Which Compiler do you use?
Logged infausto
- Guest
Re: How to change codeblocks to c99 standard?
« Reply #2 on: October 22, 2007, 04:56:00 pm » 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!!.
Logged
thomas
- Administrator
- Lives here!





-
- Posts: 3979
Re: How to change codeblocks to c99 standard?
« Reply #3 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?
Logged "We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation." infausto
- Guest
Re: How to change codeblocks to c99 standard?
« Reply #4 on: October 23, 2007, 02:51:34 pm » Quote from: thomas on October 23, 2007, 08:47:05 amWell, 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?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.
Logged - Send this topic
- Code::Blocks Forums »
- User forums »
- Help »
- How to change codeblocks to c99 standard?
- SMF 2.0.18 | SMF © 2021, Simple Machines | Terms and Policies
- XHTML
- RSS
- WAP2
Tag » Code Blocks C C99
-
C99 Mode For Single Files In For Code::Blocks - Stack Overflow
-
Compile C In C99 Mode By Codeblock - Jsdom
-
How To Install CodeBlocks And Get Started With C/C++ Programming
-
Code::Blocks Download
-
'for' Loop Initial Declarations Are Only Allowed In C99 Or C11 Mode
-
Setting Up Code::Blocks On Windows
-
How To Connect CODE Blocks With C Compilers - Quora
-
I Am Using Gnu Gcc Compiler In Codeblocks. On Executing A ... - Quora
-
如何让CodeBlocks支持C99 - CSDN博客
-
Download And Install Code Blocks C & C++ IDE On Windows 10 & 11
-
ARM Compiler V5.06 For UVision Armcc User Guide - Arm Developer
-
Code::Blocks - C++ Tutorials
-
Code::Blocks - Wikipedia
-
C, C++, D Source Code Blocks In Org Mode
