다음을 통해 공유


/LIBPATH (Additional Libpath)

 

The latest version of this topic can be found at -LIBPATH (Additional Libpath).

LIBPATH:dir

  
## Remarks  
 where:  
  
 `dir`  
 Specifies a path that the linker will search before it searches the path specified in the LIB environment option.  
  
## Remarks  
 Use the /LIBPATH option to override the environment library path. The linker will first search in the path specified by this option, and then search in the path specified in the LIB environment variable. You can specify only one directory for each /LIBPATH option you enter. If you want to specify more than one directory, you must specify multiple /LIBPATH options. The linker will then search the specified directories in order.  
  
### 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 **General** property page.  
  
4.  Modify the **Additional Library Directories** property.  
  
### To set this linker option programmatically  
  
-  See [AdditionalLibraryDirectories](assetId:///P:Microsoft.VisualStudio.VCProjectEngine.VCLinkerTool.AdditionalLibraryDirectories?qualifyHint=False&autoUpgrade=True).  
  
## See Also  
 [Setting Linker Options](../Topic/Setting%20Linker%20Options.md)   
 [Linker Options](../Topic/Linker%20Options.md)