Use the LIBRARY statement to identify the output file as a DLL, and to optionally define the name, library module initialization, and library module termination.
| LIBRARY statement syntax |
|---|
|
You can also identify the output file as a DLL by using the /DLL option.
If you use the LIBRARY statement in your .DEF file, it must be the first statement, and you cannot use the NAME statement.
If you specify both the BASE parameter in the LIBRARY statement and the BASE statement, the BASE statement takes precedence.
The following example assigns the name calendar to the DLL:
LIBRARY calendar