Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Collapse the table of content
Expand the table of content


LIBRARY [library][BASE=address]

This statement tells LINK to create a DLL. At the same time, LINK creates an import library, unless an .exp file is used in the build.

The library argument specifies the name of the DLL. You can also use the /OUT linker 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 option for details about base addresses.

Remember to use the /DLL linker option when you build a DLL.

See Also

Rules for Module-Definition Statements

© 2015 Microsoft