description | title | ms.date | f1_keywords | helpviewer_keywords | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Learn more about: /LIBPATH (Additional Libpath) |
/LIBPATH (Additional Libpath) |
03/27/2025 |
|
|
/LIBPATH:dir
dir
Specifies a path that the linker searches before it searches the path specified in the LIB
environment option. When expanded, the fully qualified directory must not exceed MAX_PATH
(260 characters).
Use the /LIBPATH
option to override the environment library path. The linker first searches in the path specified by this option, and then searches in the path specified in the LIB
environment variable. You can specify only one directory for each /LIBPATH
option you enter. To specify more than one directory, specify multiple /LIBPATH
options. The linker searches the specified directories in order.
- Open the project's Property Pages dialog box. For details, see Set C++ compiler and build properties in Visual Studio.
- Select the Configuration Properties > Linker > General property page.
- Modify the Additional Library Directories property.
- See xref:Microsoft.VisualStudio.VCProjectEngine.VCLinkerTool.AdditionalLibraryDirectories%2A.