/IMPLIB (Name Import Library)


The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at -IMPLIB (Name Import Library).


## Remarks  
 A user-specified name for the import library. It replaces the default name.  
## Remarks  
 The /IMPLIB option overrides the default name for the import library that LINK creates when it builds a program that contains exports. The default name is formed from the base name of the main output file and the extension .lib. A program contains exports if one or more of the following are specified:  
-   The [__declspec(dllexport)](../Topic/dllexport,%20dllimport.md) keyword in the source code  
-   [EXPORTS](../Topic/EXPORTS.md) statement in a .def file  
-   An [/EXPORT](../Topic/-EXPORT%20\(Exports%20a%20Function\).md) specification in a LINK command  
 LINK ignores /IMPLIB when an import library is not being created. If no exports are specified, LINK does not create an import library. If an export file is used in the build, LINK assumes that an import library already exists and does not create one. For information on import libraries and export files, see [LIB Reference](../Topic/LIB%20Reference.md).  
### To set this linker option in the Visual Studio development environment  
1.  Open the project's **Property Pages** dialog box. For details, see [Setting Visual C++ Project Properties](../Topic/Working%20with%20Project%20Properties.md).  
2.  Click the **Linker** folder.  
3.  Click the **Advanced** property page.  
4.  Modify the **Import Library** property.  
### To set this linker option programmatically  
-   See [ImportLibrary](assetId:///P:Microsoft.VisualStudio.VCProjectEngine.VCLinkerTool.ImportLibrary?qualifyHint=False&autoUpgrade=True).  
## See Also  
 [Setting Linker Options](../Topic/Setting%20Linker%20Options.md)   
 [Linker Options](../Topic/Linker%20Options.md)