Create a Module Definition File

There are four ways to create a module definition (.DEF) file:

If you require a module definition file, it is strongly recommended you use CPPFILT or ILIB to generate it.

If you use #pragma export or _Export to export your function, you may still need to provide an EXPORTS entry for that function. If your function has the following default characteristics,

it does not require a module definition file EXPORTS entry. If your function has characteristics other than the defaults, the only way you can specify them is to list them under the EXPORTS keyword in your module definition file.



Module Definition (.DEF) files


Create a Module Definition File Using CPPFILT
Managing Libraries (ILIB Utility)


Example of a Module Definition File