# extlnk

Specifies file extensions to be passed directly to the linker.

## Syntax

Linux: | None

macOS: | None

Windows: | /extlnk:ext

## Arguments

ext | Are the file extensions to be passed directly to the linker.

## Default

OFF | Only the file extensions recognized by the compiler are passed to the linker.

## Description

This option specifies file extensions (ext) to be passed directly to the linker. It is useful if your source file has a nonstandard extension.

You can specify one or more file extensions. A leading period before each extension is optional; for example, /extlnk:myobj and /extlnk:.myobj are equivalent.

## IDE Equivalent

None

## Alternate Options

None

Parent topic: Linking or Linker Options