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: C and C++ standards using in GCC


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
option.


>>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.

Ian


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