Chapter
11
/
Linking
Object Modules
Use switches
and
command characters
in
the
response file
the
same
way
as
they
are
used
for
responses
typed
from
the
keyboard.
When
the
link
session begins, each prompt is displayed,
in
order,
with
the
responses from
the
file.
If
the file does not contain a
response
for
a prompt, the linker displays the prompt
and
waits
for
a valid response.
Example
fun
text
table
care
IP
1M
funlist
coblib.li.b
The first line
in
this
file tells
the
linker to load four object mod-
ules:
Fun,
Text, Table, and Care.
The second line omits a name
for
the
run
file,
thus
the
linker
will use
the
name
Fun.exe. When
the
linker encounters
the
/P switch,
it
pauses to let you swap disks. After doing so, press
the
space
bar
to continue. Because the line includes
the
1M
switch,
the
linker
produces
a
public
symbol
map
(see
"Switches").
The
third
line tells
the
linker to name
the
list
file Funlist.map.
The fourth line tells
it
to search
the
library file Coblib.lib.
Sample
Link
Session
This sample shows
the
kind of information
that
is displayed dur-
ing a
link
session.
In
response to
the
MS-DOS prompt, type:
1 1 n k 1
ENTER
I
246
I ;
, I
'----'
I '
, I
U
i )
L-.'_)
, ,
I ,
I
LJ
[
l---l
i
L..J
, I
L.J
\ j
\ \
LJ
\ I
, I
U
I
I I
..-l
\
I I
U
I '
--..J
I
I ,
c......J
, I
I
--..J