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: What versions of C standard does GCC support?


Hey,

Well, the three big ones are K&R C, C89, and C99 - although the latter
is not implemented fully (see: http://gcc.gnu.org/c99status.html). I
would recommend using the most recent: C99 (so, -std=c99). Or if
you're only planning on using GCC, you can also use gnu99, which
enables the GNU extensions to C99.

On Mon, Aug 31, 2009 at 3:34 AM, Tim<timlee126@yahoo.com> wrote:
> Hi,
> ?I am confused by reading http://gcc.gnu.org/onlinedocs/gcc-4.1.2/gcc/Standards.html, which says "GCC supports three versions of the C standard". It seems says more than one versions. Can anyone clarify it? Which version is the most popular now and recommended?
> Thanks and regards!
>
>


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