/S Compiler Option

Syntax: Default:
/S[a|c|e|2] /Se

Use /S to set the language level.

You can set the following language levels:

/Sa Conform to ANSI standards.
/Sc Allow constructs compatible with older levels of the C++ language.
This option is not valid for C files.
/Se Allow all IBM C and C++ Compilers language constructs. This is the default.
/S2 Conform to SAA Level 2 standards.
This option is valid only for C files.

By default, the compiler allows all IBM C and C++ Compilers language extensions.



Set the Source Code Language Level


Summary of Compiler Options
Language-Dependent Options
Description of the Language Levels