Compartilhar via


LINK Output

 

The latest version of this topic can be found at 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

Setting Linker Options
Linker Options