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

John Love-Jensen
Thu Sep 20 20:14:00 GMT 2007

Hi Rick,

> Is there no way to get both the language features and the non-
> standard library features?

If you want strict C99, use: -std=c99

If you want C99 plus GNU extensions, use: -std:gnu99 (which is the default
for C code, if not specified)

What you can't do concurrently is have both "I only want strict C99 language
features without extensions (-std:c99)" and "I want GNU extensions to C99

That'd be like having tea and no tea.  You'd be one hoopy frood.


More information about the Gcc-help mailing list