# dll

Specifies that a program should be linked as a dynamic-link (DLL) library.

## Syntax

Linux: | None

macOS: | None

Windows: | /dll

## Arguments

None

## Default

OFF | The program is not linked as a dynamic-link (DLL) library.

## Description

This option specifies that a program should be linked as a dynamic-link (DLL) library instead of an executable (.exe) file. It overrides any previous specification of run-time routines to be used and enables the /libs:dll option.

If you use this option with the /libs:qwin or /libs:qwins option, the compiler issues a warning.

## IDE Equivalent

None

## Alternate Options

Linux and macOS: None

Windows: /LD

Parent topic: Linking or Linker Options