/DEF   (Specify Module-Definition File)

HomeOverviewHow Do ILinker Options

Syntax

/DEF:filename

This option passes a module-definition (.DEF) file to the linker. Only one .DEF file can be specified to LINK. For details about .DEF files, see Module-Definition Files.

When a .DEF file is used in a build, no matter whether the main output file is an .EXE file or a DLL, LINK creates an import library (.LIB) and an export file (.EXP). These files are created regardless of whether the main output file contains exports.

Do not specify this option within the development environment; this option is for use only on the command line. To specify a .DEF file, add it to the project along with other files.