LIBRARY

Syntax:

LIBRARY [library] [BASE=address]

This statement tells LINK to create a DLL. LINK creates an import library at the same time, unless you use an .EXP file in the build.

The library argument specifies the internal name of the DLL. (Use the Output File Name (/OUT) option to specify the DLL's output name.)

The BASE=address argument sets the base address that the operating system uses to load the DLL. This argument overrides the default DLL location of 0x10000000. See the description of the Base Address (/BASE) option for details about base addresses.

You can also use the /DLL linker option to specify a DLL build, and the /BASE option to set the base address.