Developer Guide and Reference

ID 767251
Date 10/31/2024
Public
Document Table of Contents

MD

Tells the linker to search for unresolved references in a multithreaded, dynamic-link runtime library.

Syntax

Linux:

None

Windows:

/MD

/MDd

Arguments

None

Default

OFF

The linker searches for unresolved references in a multi-threaded, static runtime library.

Description

This option tells the linker to search for unresolved references in a multithreaded, dynamic-link (DLL) runtime library. This is the same as specifying options /libs:dll /threads /dbglibs. You can also specify /MDd, where d indicates a debug version.

This option is processed by the compiler, which adds directives to the compiled object file that are processed by the linker.

NOTE:

This option only applies to host compilation. When offloading is enabled, it does not impact device-specific compilation.

IDE Equivalent

Visual Studio: Libraries > Runtime Library

Alternate Options

None

See Also