Intel® C++ Compiler Classic Developer Guide and Reference

ID 767249
Date 12/16/2022
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

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.

NOTE:

Support for Microsoft Visual Studio 2017 is deprecated as of the Intel® oneAPI 2022.1 release, and will be removed in a future release.

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

See Also