Commodore PC Ms-Dos 3.2 User's Manual page 259

Table of Contents

Advertisement

Link: A Linker 187
Using a Response File to Specify Link Files
--^ You can create a program by listing, in a response file, the names
(
» of all the files to be processed, and by giving the name of the
response file on the link command line. The simplest way to use
a response file is with a command line of the following form:
link ©filename
(
' You can also specify a response file at any prompt, or at any posi
tion in a command line. The input from the response file is
treated exactly as though you had typed it at the link prompts or
(***) in a command line. However, any return/linefeed combinations in
the file are treated the same as if you had pressed the return key
in response to a prompt, or typed a comma in a command line.
f]
When you specify a response file, remember that the filename
must be the name of the response file, and that you must precede
it by an "at" sign (@). If the file is in another directory or on
^■"^
another disk drive, you must provide a pathname.
You can name the response file anything you like. The file content
The format Of a
has the following general form:
response file
objectfiles
[executable/He]
^
[mapfile]
<
'
[libraryfiles]
(~^\
You can omit any elements that have already been provided at
prompts or with a partial command line.
You must place each group of filenames on a separate line. If you
f^) have more names than can fit on one line, you can simply con
tinue the names on the next line by typing a plus sign ( + ) as the
last character in the current line and pressing the return key. If
/--n
you do not supply a filename for a group, you must leave an
empty line. You can give options on any line.
You can place a semicolon (;) on any line in the response file.
fmss
When link encounters the semicolon, it automatically supplies
default filenames for all files you have not yet named in the
response file. The remainder of the response file is ignored.
f0^
When you create a program with a response file, the linker
displays each response from your response file on the screen in
the form of prompts. If the response file does not contain names
--*.
for required files, link prompts you for the missing names and
'
waits for you to enter responses.

Advertisement

Table of Contents
loading

Table of Contents