Skip to content

Latest commit

 

History

History
52 lines (47 loc) · 1.46 KB

File metadata and controls

52 lines (47 loc) · 1.46 KB
title LIBRARY | Microsoft Docs
ms.custom
ms.date 11/04/2016
ms.reviewer
ms.suite
ms.technology
cpp-tools
ms.tgt_pltfrm
ms.topic article
f1_keywords
LIBRARY
dev_langs
C++
helpviewer_keywords
LIBRARY .def file statement
ms.assetid 1d7ccc92-e088-4ef7-9ef0-25c3862cc051
caps.latest.revision 7
author corob-msft
ms.author corob
manager ghogen
translation.priority.ht
cs-cz
de-de
es-es
fr-fr
it-it
ja-jp
ko-kr
pl-pl
pt-br
ru-ru
tr-tr
zh-cn
zh-tw

LIBRARY

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

LIBRARY [library][BASE=address]  

Remarks

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