description | title | ms.date | f1_keywords | helpviewer_keywords | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Learn more about: /DEF (Specify module-definition file) |
/DEF (Specify module-definition file) |
03/27/2025 |
|
|
Specifies a module-definition file to the linker.
/DEF:
filename
filename
The name of a module-definition file (.def
) to be passed to the linker. When expanded, the fully qualified filename must not exceed MAX_PATH
(260 characters).
The /DEF
linker option passes a module-definition file (.def
) to the linker. Only one .def
file can be specified to LINK. For details about .def
files, see Module-definition files.
To specify a .def
file from within the development environment, add it to the project along with your other source files and then specify the file in the project's Property Pages dialog.
- Open the project's Property Pages dialog box. For more information, see Set compiler and build properties.
- Select the Configuration Properties > Linker > Input property page.
- Modify the Module Definition File property. Choose OK or Apply to save your changes.
- See xref:Microsoft.VisualStudio.VCProjectEngine.VCLinkerTool.ModuleDefinitionFile%2A.