This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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
(-std:gnu99)".

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

HTH,
--Eljay


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]