DEF File Documentation
Overview
| Feature | Value |
|---|---|
| Primary Usage | Linker configuration |
| Common File Extension | .def |
| File Format Type | Text |
| Supported by Operating Systems | Windows |
| Used by Languages | C, C++ |
| Editor Compatibility | Any text editor |
| MIME Type | text/plain |
| Character Set | ASCII or UTF-8 without BOM |
| Main Purpose | Defining exports for a DLL |
| Structure Elements | LIBRARY, EXPORTS, SECTIONS |
| Keyword - LIBRARY | Defines the name of the DLL |
| Keyword - EXPORTS | Lists functions to export from DLL |
| Keyword - SECTIONS | Defines sections attributes |
| Comment Syntax | Semicolon (;) |
| Directives Support | Yes |
| Linker Input | Used to provide linker with module definitions |
| Can Include Code | No |
| Supports Versioning | Yes |
| Stack Size Definition | Can specify stack size for the application |
| Heap Size Definition | Can specify heap size for the application |
| Can Specify Entry Point | Yes, for DLLs |
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.