Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
LINK Environment Variable
◄Example► ◄Up► ◄Contents► ◄Index► ◄Back►
─────LINK Environment Variable──────────────────────────────────────────────
You can use the LINK environment variable to set options that will
be in effect each time you link. LINK checks the LINK environment
variable for options if the variable exists. (Microsoft compilers
such as CL, FL, and ML also use the LINK environment variable.)
See: ◄LINK Options List►
Set the LINK environment variable using the following operating-
system command:
SET LINK=options
LINK expects to find <options> listed in the variable exactly as
you would type them in fields on the command line, in response to
a prompt, or in a response file. It does not accept input for
other fields; filenames in the LINK variable cause an error.
Each time you link, you can specify other options in addition to
the ones specified in the LINK environment variable. If an option
appears both in an input field and in the LINK variable, the
effect is the same as if the option were given once.
If conflicting options appear, the input-field option overrides
the effect of any conflicting environment-variable option. For
example, the command-line option /SEG:512 cancels the effect of
the environment-variable option /SEG:256.
The only way to prevent an option in the environment variable from
being used is to reset the environment variable itself. To clear
the LINK variable, use the operating-system command
SET LINK=
To see the current setting of the LINK variable, type SET at the
operating-system prompt.
-♦-