다음을 통해 공유


LINK Environment Variables

The LINK tool uses the following environment variables:

  • LINK, if defined. The LINK tool processes options and arguments defined in the LINK environment variable before processing the command line.

  • LIB, if defined. The LINK tools uses the LIB path when searching for an object, library, or other file specified on the command line or by the /BASE option. It also uses the LIB path to find a .pdb file named in an object. The LIB variable can contain one or more path specifications, separated by semicolons. One path must point to the \lib subdirectory of your Visual C++ installation.

  • PATH, if the tool needs to run CVTRES and cannot find the file in the same directory as LINK itself. (LINK requires CVTRES to link a .res file.) PATH must point to the \bin subdirectory of your Visual C++ installation.

  • TMP, to specify a directory when linking OMF or .res files.

See Also

Tasks

Setting the Path and Environment Variables for Command-Line Builds

Reference

Setting Linker Options

Linker Options