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]DescriptionOSCompiler versions
c89Conforms to the ISO/IEC 9899:1990 International StandardWindows10.x, 11.x, 12.x, 13.0
c99Conforms to The ISO/IEC 9899:1999 International StandardWindows, Linux, MacOS X10.x, 11.x, 12.x, 13.0
gnu89Conforms to ISO C90 plus GNU* extensionsLinux, MacOS X10.x, 11.x, 12.x, 13.0
gnu++98Conforms to the 1998 ISO C++ standard plus GNU extensionsLinux, MacOS X10.x, 11.x, 12.x, 13.0
c++0xEnable support for the following C++0x featuresWindows, Linux, MacOS X11.x, 12.x, 13.0
c++11New name for C++0xWindows, Linux, MacOS X13.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.