LINK Help (linker.hlp) (Table of Contents; Topic list)
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
                                             Up Contents Index Back
─────LINK───────────────────────────────────────────────────────────────────
 
     You can use the LINK environment variable to set options that will
     be in effect each time you link. (Microsoft compilers such as CL,
     FL, and ML also use the LINK environment variable.)
     See: LINK Options List
 
     Setting LINK
 
     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 values for
     LINK's input fields in the LINK variable.
 
     Using LINK
 
     Each time you link, LINK checks the LINK environment variable for
     options (if the variable exists). 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, /SEG:512 specified on the command line overrides /SEG:256
     specified in the environment variable. Similarly, /NOPACKC on the
     command line overrides /PACKC in the LINK variable.
 
     The option considered to be first is the first one in the LINK
     variable, if set. The /NOLOGO option has no effect if it is not
     specified first. The /r option cannot be specified in the LINK
     variable and must be specified first on the command line.
 
     Clearing LINK
 
     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 following operating-system command:
 
          SET LINK=
 
     To see the current setting of the LINK variable, type SET at the
     operating-system prompt.
                                    -♦-