Compile C In C99 Mode By Codeblock - Jsdom

jsdom my coding yard and garage Skip to content
  • Home
  • About
css sprite usage c double pointer usage

compile c in c99 mode by codeblock

Posted on March 13, 2012 by jsdom

After Writing so many javascript codes, I wrote some C code habitually as below:

for (int i = 0; i < LENGTH && s[i]; ++i) …

Then I got some big fat error like this:

\cex\poj1001\main.c|19|error: ‘for’ loop initial declarations are only allowed in C99 mode|

I did some search to find out how to setting c99 mode in c::B(code::block) ide.

1. select ‘project properites’ on ‘project’ context’ menu

2.  click on the button of  ” project build options…”

3. type in ‘-std=c99’ in ‘other options’

Share this:

  • Facebook
  • X
Like Loading...

Related

Unknown's avatar

About jsdom

leading software engineer View all posts by jsdom This entry was posted in programming and tagged C&C++. Bookmark the permalink. css sprite usage c double pointer usage

1 Response to compile c in c99 mode by codeblock

  1. hb's avatar hb says: August 24, 2014 at 5:55 pm

    Hi, it does not work for me, even if i add it under compiler global settings and restart codeblock. What can i do?

    Reply

Leave a comment Cancel reply

Δ

  • Search for:
  • Recent Posts

    • splunk query neighboring events
    • Unique Binary search Tree
    • Manacher’s algorithm
    • a speical character issue on jenkins jobdsl plugin
    • Setup p4merge as a visual diff and merge tool for git Raw
  • Archives

    • July 2016
    • June 2016
    • May 2016
    • March 2016
    • January 2016
    • November 2015
    • October 2015
    • August 2015
    • July 2015
    • June 2015
    • May 2015
    • April 2015
    • January 2015
    • December 2014
    • November 2014
    • October 2014
    • September 2014
    • May 2014
    • April 2014
    • March 2014
    • February 2014
    • January 2014
    • October 2013
    • September 2013
    • August 2013
    • June 2013
    • May 2013
    • April 2013
    • March 2013
    • February 2013
    • January 2013
    • December 2012
    • November 2012
    • October 2012
    • September 2012
    • August 2012
    • July 2012
    • June 2012
    • May 2012
    • April 2012
    • March 2012
    • February 2012
    • January 2012
    • December 2011
    • November 2011
    • October 2011
    • September 2011
    • August 2011
    • July 2011
    • June 2011
    • April 2011
    • March 2011
    • February 2011
  • Categories

    • algorithm
    • devops
    • programming
    • System
    • Uncategorized
    • web development
    • work related
  • My Tags

    • ACM
    • algorithms
    • assembly
    • aws
    • binary search
    • C&C++
    • chef
    • compiler
    • concurrency and thread
    • core java
    • crawler
    • CSS
    • debug
    • DP
    • extjs
    • groovy
    • Haskell
    • huffman code/tree
    • javascript
    • jersey
    • linux
    • mac&ios
    • maven
    • mobile
    • nginx
    • open source
    • perl
    • redhat
    • restful
    • ruby
    • search engine
    • tomcat
    • vcs
    • vim
    • websphere
  • My Profile

    Unknown's avatarSenior Software Engineer At Actuate

  • Meta

    • Create account
    • Log in
    • Entries feed
    • Comments feed
    • WordPress.com
jsdom Blog at WordPress.com. Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use. To find out more, including how to control cookies, see here: Cookie Policy
  • Comment
  • Reblog
  • Subscribe Subscribed
    • jsdom
    • Sign me up
    • Already have a WordPress.com account? Log in now.
    • jsdom
    • Subscribe Subscribed
    • Sign up
    • Log in
    • Copy shortlink
    • Report this content
    • View post in Reader
    • Manage subscriptions
    • Collapse this bar
Loading Comments... Write a Comment... Email (Required) Name (Required) Website %d Design a site like this with WordPress.comGet started

Tag » Code Blocks C C99