Intel C++ Compiler Options for ISO/IEC Standards and Language Conformance

The Intel(R) C++ Compiler conforms to the ANSI/ISO standard ISO/IEC 9899:1999 for C language and ISO/IEC 14882:1998 for C++ language, refer to Intel C++ Compiler - ANSI C/C++ and OpenMP* compliance for details.

The option /Qstd=val or –std=val is for setting the specific conformance of ISO/IEC standards language.

The possible values of “val” are described below:

[val] Description OS Compiler versions
c89 Conforms to the ISO/IEC 9899:1990 International Standard Windows 10.x, 11.x, 12.x, 13.0
c99 Conforms to The ISO/IEC 9899:1999 International Standard Windows, Linux, MacOS X 10.x, 11.x, 12.x, 13.0
gnu89 Conforms to ISO C90 plus GNU* extensions Linux, MacOS X 10.x, 11.x, 12.x, 13.0
gnu++98 Conforms to the 1998 ISO C++ standard plus GNU extensions Linux, MacOS X 10.x, 11.x, 12.x, 13.0
c++0x Enable support for the following C++0x features Windows, Linux, MacOS X 11.x, 12.x, 13.0
c++11 New name for C++0x Windows, Linux, MacOS X 13.0

The default for Intel C++ compilerare are as given below:

  • Linux:
    • -std=gnu89 - default for C, Conforms to ISO C90 plus GNU extensions.
    • -std=gnu++98 - default for C++, Conforms to the 1998 ISO C++ standard plus GNU* extensions.
  • Windows:
    • /Qstd=xxx - The default is compatible with your version of Microsoft Visual Studio* C++.
For more complete information about compiler optimizations, see our Optimization Notice.