5.7.3.7 Std Option
The -std=standard option specifies the C
standard to which the compiler assumes source code will conform. The allowable standards
are listed below.
| Standard | Supports |
|---|---|
c89 or
c90 | ISO C90 (ANSI) programs |
c99 | ISO C99 programs |
c11 | ISO C11 programs |
gnu89 or gnu90 | GNU dialect of ISO C90 programs |
gnu99 | GNU dialect of ISO C99 programs |
gnu11 | GNU dialect of ISO C11 programs |
C++98 | ISO C++98 programs |
C++03 | ISO C++03 programs |
C++11 | ISO C++11 programs |
C++14 | ISO C++14 programs |
C++17 | ISO C++17 programs |
GNU++98 | GNU dialect of ISO C++98 programs |
GNU++11 | GNU dialect of ISO C++11 programs |
GNU++14 | GNU dialect of ISO C++14 programs |
GNU++17 | GNU dialect of ISO C++17 programs |
If this option is not specified,
gnu++17 is the default language standard.
