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 eMbedded Visual C++ installation. In the development environment, you can set the LIB variable on the Directories tab of the Tools Options dialog box.
  • PATH, if the tool needs to run CVPACK or CVTRES and cannot find the file in the same directory as LINK itself. (LINK requires CVPACK to create Microsoft-format debugging information and CVTRES to link a .res file.) PATH must point to the \bin subdirectory of your eMbedded Visual C++ installation.
  • TMP, to specify a directory when linking OMF or .res files.

See Also

Environment Variables for Cl.exe and Link.exe