C and C++ standards using in GCC

Ian Lance Taylor iant@google.com
Fri Jun 4 15:52:00 GMT 2010

naveen yadav <yad.naveen@gmail.com> writes:

> I want to know which  C / C++ standard my gcc is supported, Is there
> any method to find ?

Check the documentation which comes with your gcc.  Look for the -std

>>From below site, they say C standard is ‘gnu90’, and C++ standard is ‘gnu++98’.
> http://gcc.gnu.org/onlinedocs/gcc/Standards.html
> Is it applicable to all gcc versions currently available?

It's applicable to all supported versions of gcc, but since gcc is
free software all versions are in a sense available.

> I try using below method
> [naveen@localhost ~]$ gcc -std=gnu99  test1.c -v

Yes, that works too.  If you try with an unsupported version, you will
get an error.


More information about the Gcc-help mailing list