How can I get -std=c99 without definine __STRICT_ANSI__?

Richard Li richardpku@gmail.com
Sat Sep 22 08:31:00 GMT 2007


Hi,

I think the current default is still gnu89, since GCC has not yet
fully implemented C99. Some C99 features (like variable declaration
after some statements) are supported by default as part of the GNU
extension to C89, but others (like variable declaration in a "for"
statement) are disable unless you specify "-std=c99" or "-std=gnu99"
explicitly.

On 9/21/07, John Love-Jensen <eljay@adobe.com> wrote:
> If you want C99 plus GNU extensions, use: -std:gnu99 (which is the default
> for C code, if not specified)



More information about the Gcc-help mailing list