Programming Tools:prgtools

Environment variables for the linker Foundation

ALINK.EXE looks for the environment variable "ALINK" and uses its contents as default options. An example of a definition for the environment variable is:

SET ALINK=/DEBUG /PMTYPE:PM 

This creates a debug-enabled GUI application by default. All options specified on the command line are processed after the SET ALINK= options. Therefore, command line options override those set with the environment variable.

In addition, the linker uses SET LIB= as a search path for OBJ and LIB files. ALINK searches for OBJ and LIB files in the following order:

The directory specified as part of a file name.
The current directory.
All directories defined in the environment variable SET LIB=.

If an OBJ or LIB file is not found, ALINK issues an error message and terminates the link process.

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.