# fms-dialect

Enables support for a language dialect that is compatible with Microsoft* Windows*, while maintaining link compatibility with gcc.

## Syntax

Linux: | -fms-dialect[=ver]

macOS: | None

Windows: | None

## Arguments

ver | Indicates that the language dialect should be compatible with a certain version of Microsoft* Visual Studio*. Possible values are:
14.2 | Specifies the dialect should be compatible with Microsoft* Visual Studio* 2019.
14.1 | Specifies the dialect should be compatible with Microsoft* Visual Studio* 2017.

## Default

OFF | The compiler does not support a language dialect that is compatible with Microsoft* Windows*.

## Description

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.

The -fms-dialect option 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.

## IDE Equivalent

None

## Alternate Options

Linux and macOS*: None

Windows: /Qgcc-dialect

Parent topic: Compatibility Options

## See Also

Qgcc-dialect compiler option