Compartilhar via


LINK Environment Variables (Windows CE 5.0)

Send Feedback

LINK uses environment variables as follows:

  • If the LINK variable is defined, LINK processes arguments defined in the variable before it processes the command line. The LINK environment variable can contain any arguments to the linker.

  • If the LIB variable is defined, LINK uses the LIB path when it searches for a file (such as an object or library) specified on the LINK command line or with the /BASE option, or for a .PDB file named in an object.

    The LIB environment variable can contain one or more path specifications, separated by semicolons (;).

    You can set the LIB variable within the development environment by selecting the Directories tab in the Options dialog box (available from the Tools menu).

  • If LINK needs to run CVPACK or CVTRES and cannot find it in the same directory as itself, LINK uses the PATH environment variable to look for the tool. CVPACK is required when creating Microsoft-format debugging information. CVTRES is required when linking a .RES file.

  • LINK uses the directory specified in the TMP environment variable when linking OMF or .RES files.

See Also

Linker Options | Linker Reference

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.