Chapter 11 /
Linking
Object Modules
size
can
be
any
positive
value
(in
decimal)
up
to
65535 bytes.
If
you enter a value
in
the
range 1-511,
the
linker uses 512.
At
least
one object (input) module
must
contain a
stack allocation statement.
If
it
does not,
the
linker
displays
the
error message:
I \
i ;
L..J
I '
:-:
, I
1--,
•
Warning:
No
STACK
Segment
INO -
the
IN
switch tells
the
linker not to search
the
default (product) libraries
in
the
object modules. For
example,
if
you
are
linking
object modules
in
Pascal
and
specify IN,
the
linker does not search
the
library
named
Pascal.lib to resolve external references.
: .
W
, ,
I !
'--'
You
can
start
the
linker by:
• entering responses to
the
individual prompts as they
are
displayed.
• including
all
responses on
the
command line.
•
creating
a
file
to
automatically
respond
to
the
prompts.
Method
1:
Keyboard
Responses
'"
i :
I I
>_1
\ )
, I
, I
'---
, I
I ,
L.!
To
load
the
linker into memory
and
display
the
four prompts, one
at
a time, type:
LI
NK
I
ENTER
I
These prompts
and
possible responses
are
described under "Com-
mand
Prompts."
Method
2:
Responses
on
Command
Line
Type
all
prompt responses on
the
LINK
command line.
Separate
the
responses
with
commas. Use
the
following format:
LINK
objlist, runfile, listfile, liblist [/switch... ] I
ENTER
I
objlist
is
a
list
of object modules. Use a
blank
space or a
plus sign to
separate
the
module names.
244
I
, I
LJ
\ :
G
I i
I