Home > OS >  MSVC: is it possible to enable specific language extensions (i.e. not all at once)?
MSVC: is it possible to enable specific language extensions (i.e. not all at once)?

Time:10-15

Context: C compiler option /Ze enables all Microsoft extensions to C and C .

A simple question: is it possible to enable specific language extensions (i.e. not all at once)?

CodePudding user response:

/Za is super-ancient... ANSI 89. The /Ze flag is deprecated. Don't use either of them.

For modern language conformance, the /Zc, /permissive-, and /std:* switches are the way to go.

If you are looking for C rather than C conformance, see Microsoft Docs for details on the new /std:c11 and /std:c17 switch in VS 2019 (16.8 or later).

  • Related