-\182 MS-DOS User's Reference
How to start Link
Starting and Using Link
This section explains
three
methods
for starting and using
the
linker
to
create
executable programs.
These
methods
let
you
use
link
by answering a series
of
prompts, by typing an MS-DOS com-
mand line,
or
by using a response file.
The
three
methods
can
also
be
mixed.
Once
you start
link,
it will
either
process
the
files you supply
or
prompt
you for additional files. Also,
note
that
you
can
stop
the
linker at any time by pressing CONTROLĀ·C.
Using Prompts to Specify Link Files
When
you type
the
command,
link,
at
the
MSĀ· DOS
prompt,
the
linker
prompts
you for
the
information
it
needs. Follow
these
steps:
[II
First, type
the
following
command
and
press
the
RETURN key:
lin
k
Link
prompts
you for
the
object
files
you
wish
to
link
by
displaying
the
following message:
Object
Modules
[.OBJ1:
III Type the
name
or
names
of
the
object
files you wish
to
link. If
you
do
not
supply extensions for these files,
link
supplies
.obj
by default.
If
you have
more
than
one
name, make
sure
you
separate each
with
spaces
or
plus signs ( +
).
If
you
have
more
names than
can
fit
on
one
line, type a plus sign ( + ) as
the
last
character
on
the
line and press
the
RETURN key. Link
then
prompts
you for additional
object
files.
Once
you have given all
your
object
filenames,
press
the
RETURN key.
The
linker displays
the
following
prompt:
Run
F i 1 e [jilename.EXE 1 :
rn
Note
that
in
step
2,
filename
is
the
same as
the
first
filename
you
typed
at
the
Object
Modules
prompt.
Type
the
name
of
the
executable
file
you
wish
to
create,
and
press
the
RETURN
key.
If
you
do
not
give an extension,
link
supplies .exe
by
default.
If
you
want
link
to
supply a default executable
filename, just
press
the
RETURN key.
The
filename
will
then
be
the
same as
the
first
object
file,
but
with
the
extension .exe.
[
[
[
[
[
[
[
[
[
[
[