Everything

 

-lang [V1.06 or later]


This option specifies the language standard of C source files and C++ source files.

[Specification format]

-lang={c|c99} [V1.11 or earlier]
-lang={c|c99|cpp14} [V1.12 or later]

 

-

Interpretation when omitted

Compilation is executed in accord with the C90 standard.

[Detailed description]

This option specifies the language standard of the source file.

-

When the -lang=c option is specified or the option is omitted, compilation is executed in accord with the C90 standard.

-

When the -lang=c99 option is specified, compilation is executed in accord with the C99 standard.

-

When the -lang=cpp14 option is specified, compilation is executed in accord with the C++14 standard. [V1.12 or later]

-

If any option other than -lang=c, -lang=c99, or -lang=cpp14 is specified, an error occurs.

[Remark]

-

If a C source file is specified for input when the -lang=cpp14 option is specified, a compile error occurs.
[V1.12 or later]

-

This compiler does not support the following language standards.

-

Some header files and standard library functions in the C90/C99 language standard

-

Complex number types in the C99 language standard

-

Variable-length arrays in the C99 language standard