User forums > Using Code::Blocks

Forcing ANSI C standard only.

<< < (3/3)

MortenMacFly:

--- Quote from: codeur on August 12, 2011, 12:22:28 pm ---@ Morten
Most C educational environments now use the ISO C99 standards instead of ansi.
The GCC flag -std=c99 is not available in the Codeblocks project build options and would be needed for those cases instead of -ansi.

I think that -std=c99 is worth adding to the compiler flag options for GCC and the equivalent for other compilers.

--- End quote ---
If you come up with a patch that would be nice. I am rather busy these days... but practically it should be a one-liner for each relevant compiler. It would be nice if you take other -std=XXX options into consideration, too... I don't know what else is available and makes sense.

codeur:
@ Morten,
Patch 003204 now on berliOS adds option flag -std=c99 to the GCC compilers GNUARM, GNUAVR, GNUMSP430, GNUPOWERPC, GNUTRICORE, MINGW.
This was overdue for C standards, but no other -std=XXX option makes sense at this point for C. The contemporary C++ standards are already well supported.

nickwelhar:
What is ANSI ?
 
ANSI (American National Standards Institute) codes are standardized numeric or alphabetic codes issued by the American National Standards Institute to ensure uniform identification of geographic entities through all federal government agencies. It has served as coordinator of the U.S. private sector, voluntary standardization system for more than 90 years. This is essentially an extension of the ASCII character set in that it includes all the ASCII characters with an additional 128 character codes. ASCII just defines a 7 bit code page with 128 symbols. ANSI extends this to 8 bit and there are several different code pages for the symbols 128 to 255. More about ANSI

Nick

MortenMacFly:

--- Quote from: nickwelhar on April 03, 2015, 10:23:26 am ---Nick

--- End quote ---
Are you a spammer? This is a thread dated back 2011. If you continue to make such non-sense posts you'll be banned.

Navigation

[0] Message Index

[*] Previous page

Go to full version