12.6.1 Setting the LINK Environment Variable

You set the LINK environment variable with 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.

Example

SET LINK=/NOI /SEG:256 /CO

LINK TEST;

LINK /NOD PROG;

In the example above, the commands are specified at the system prompt. The file TEST.OBJ is linked using the options /NOI, /SEG:256, and /CO. The file PROG.OBJ is then linked with the option /NOD, in addition to /NOI, /SEG:256, and /CO.