Visible to Intel only — GUID: GUID-080E90C8-1199-4A0D-8715-3BD04E7BBE08
Visible to Intel only — GUID: GUID-080E90C8-1199-4A0D-8715-3BD04E7BBE08
std, Qstd
Tells the compiler to conform to a specific language standard.
Linux: |
-std=val |
macOS: |
-std=val |
Windows: |
/Qstd:val /std:val (For Microsoft* compatibility) |
val |
Specifies the specific language standard to conform to. The following values apply to Linux* -std and Windows* /Qstd:
The following values apply only to Linux -std:
For possible values for Microsoft*-compatible Windows* /std, see the Microsoft* documentation. |
Default for Windows option /Qstd: |
The compiler does not conform to a specific language standard. |
Default for Windows option /std: |
Currently, the compiler conforms to the 2014 ISO C++ standard. For the latest information, see the Microsoft* documentation. |
Default for Linux option -std on icc (Classic C compiler): |
If using GCC5.x or higher, the compiler conforms to c99, which is the 1999 ISO C standard. If using GCC5.0 or lower, the compiler conforms to c11, which is the 2011 ISO C standard. |
Default for Linux option -std on icpc (Classic C++ compiler): |
If using GCC5.x or lower, the compiler conforms to c++98, which is the 1998 ISO C++ standard. If using GCC6.0 to GCC11.0, the compiler conforms to c++14, which is the 2014 ISO C++ standard. If using GCC11.1 or higher, the compiler conforms to c++17, which is the 2017 ISO C++ standard. |
This option tells the compiler to conform to a specific language standard.
Visual Studio: Language > C/C++ Language Support
Eclipse: Language > ANSI Conformance
Xcode: Language > C Language Dialect and C++ Language Dialect
None