Skip to content

Latest commit

 

History

History
37 lines (23 loc) · 2.38 KB

link-output.md

File metadata and controls

37 lines (23 loc) · 2.38 KB
description title ms.date helpviewer_keywords ms.assetid
Learn more about: LINK Output
LINK Output
11/04/2016
mapfiles [C++]
ILK files
output files [C++], linker
files [C++], LINK
.ilk files
LINK tool [C++], output
import libraries [C++], creating
executable files [C++], as linker output
mapfiles [C++], LINK output
linker [C++], output files
DLLs [C++], as linker output
LINK tool [C++], mapfile
a98b557c-1947-447a-be1f-616fb45a9580

LINK Output

Link output includes .exe files, DLLs, mapfiles, and messages.

Output Files

The default output file from LINK is an .exe file. If the /DLL option is specified, LINK builds a .dll file. You can control the output file name with the Output File Name (/OUT) option.

In incremental mode, LINK creates an .ilk file to hold status information for later incremental builds of the program. For details about .ilk files, see .ilk Files. For more information about incremental linking, see the Link Incrementally (/INCREMENTAL) option.

When LINK creates a program that contains exports (usually a DLL), it also builds a .lib file, unless an .exp file was used in the build. You can control the import library file name with the /IMPLIB option.

If the Generate Mapfile (/MAP) option is specified, LINK creates a mapfile.

If the Generate Debug Info (/DEBUG) option is specified, LINK creates a PDB to contain debugging information for the program.

Other Output

When you type link without any other command-line input, LINK displays a usage statement that summarizes its options.

LINK displays a copyright and version message and echoes command-file input, unless the Suppress Startup Banner (/NOLOGO) option is used.

You can use the Print Progress Messages (/VERBOSE) option to display additional details about the build.

LINK issues error and warning messages in the form LNKnnnn. This error prefix and range of numbers are also used by LIB, DUMPBIN, and EDITBIN.

See also

MSVC linker reference
MSVC Linker Options