Enables support for a language dialect that is compatible with Microsoft Windows*, while maintaining link compatibility with gcc.
- Indicates that the language dialect should be compatible with a certain version of Microsoft* Visual Studio. Possible values are:
- Specifies the dialect should be compatible with Microsoft* Visual Studio 2019.
- Specifies the dialect should be compatible with Microsoft* Visual Studio 2017.
- The compiler does not support a language dialect that is compatible with Microsoft Windows.
This option enables support for a limited language dialect that is compatible with Microsoft*Windows, while maintaining link compatibility with gcc. It allows portability of code written on Windows that uses Microsoft extensions or language features. The code will be compiled with syntax and semantics similar to that used by the Microsoft Windows compiler, while continuing to produce object files that are link-compatible with the object files and libraries produced by the gcc compiler and/or by the Intel Compiler without this option.
-fms-dialectoption is intended to be used as an aid in porting code written on Windows. It is not intended to enable an all-encompassing capability for porting all such code written on Windows seamlessly. For example, even with this option enabled, there remains a need to support gcc-compatible syntax and semantics for some language constructs in order to generate object files that are link-time compatible with those produced by the gcc compiler and/or by the Intel compiler without this option.