LIBRARY Module Definition Statement

Syntax: Parameters:
LIBRARY [lib][init][term]
LIBRARY [lib]
Loading address

Use the LIBRARY statement to identify the output file as a dynamic link library (DLL), and optionally define the name, library module initialization, and library module termination.

You can also identify the output file as a DLL with the /DLL linker option.

If you use the LIBRARY statement in your module definition (.def) file, it must be the first statement in the module definition file, 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.

This example assigns the name calendar to the dynamic link library (DLL):

LIBRARY calendar


Summary of Module Definition Statements