This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
C / C++ Language Standards
- From: João Lopes <joao dot lopes at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Thu, 27 Jul 2006 22:55:56 +0100
- Subject: C / C++ Language Standards
Hi,
I am trying to understand what "versions" of C and C++ exists, and what
are supported by GCC.
*Language Standards Supported by GCC*
http://gcc.gnu.org/onlinedocs/gcc-4.1.0/gcc/Standards.html#Standards
*Options Controlling C Dialect*
http://gcc.gnu.org/onlinedocs/gcc-4.1.0/gcc/C-Dialect-Options.html
For example, i can say "At project X we will use PHP 5.1, or JAVA 1.5",
but if i use C++ what can i say ?
Google tells me about two C++ Standards ( C++98 / C++03 ) / /and two C
Standards ( C89 / C99 ), so i can say this :
"I will use C++ ISO98 on project X, by using GCC with *-std=**c++98*"
"I will use C ISO99 on project X, by using GCC with *-std=**c99*"
Thanks,
João Lopes