/DEF

Syntax:

/DEF:filename

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, whether the main output file is an executable file or a DLL, LINK creates an import library (.LIB) and an exports file (.EXP). These files are created regardless of whether the main output file contains exports.

Do not specify this option in the visual 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.