This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: What versions of C standard does GCC support?
- From: "Marshall B. Rogers" <mbr at 64 dot vg>
- To: Tim <timlee126 at yahoo dot com>
- Cc: GCC Help Mailing List <gcc-help at gcc dot gnu dot org>
- Date: Mon, 31 Aug 2009 07:38:39 +0200
- Subject: Re: What versions of C standard does GCC support?
- References: <811337.14932.qm@web63105.mail.re1.yahoo.com>
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!
>
>