14.5 Running LINK

The simplest use of LINK is to combine one or more object files with a run-time library to create an executable file. You type LINK at the command-line prompt, followed by the names of the object files and a semicolon (;). LINK combines the object files with any language libraries specified in the object files to create an executable file. By default, the executable file takes the name of the first object file in the list.

To interrupt LINK and return to the operating-system prompt, press CTRL+C at any time.

LINK has five input fields, all optional except one (the objfiles field). There are several ways to supply the input fields LINK expects:

Enter all the required input directly on the command line.

Omit one or more of the input fields and respond when LINK prompts for the missing fields.

Put the input in a response file and enter the response-file name (preceded by @) in place of the expected input.

These methods can be used in combination. The LINK command line was discussed on topic . The following sections explain the other two methods.