EasyManua.ls Logo

Commodore PC 10 - Page 326

Commodore PC 10
494 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
1188
MS-DOS User's Reference
[
Using Link with a
response file
Note
A response file should
end
with
either
a
semicolon
(;)
or
a RETURN/LINEFEED combination.
If
you fail
to
provide
a final
RETURNILINEFEED in
the
file,
the
linker will display
the
last line
of
the
response file and wait for you
to
press
the
RETURN key.
Example:
The
following response file tells
the
linker
to
link
the
four
object
modules,
moda, modb,
modc, and startup. Then, before produc-
ing
the
executable
file moda.exe, it tells
link
to
pause
to
let
you
swap disks. Finally,
the
linker creates a map file abc.
map
and
searches
the
math. lib library in
the
\ lib
directory
of
drive
B:
moda modb modc
startup
/PAUSE
abc
[
[
[
[
b:\lib\math
c=_
The
following
procedure
combines all
three
methods
of
supplying
filenames. Assume you have a response file called
library
that
con- [
tains
one
line:
lib1+lib2+lib3+lib4
Now
start
link
with a partial
command
line:
link
object1
object2
Link
takes objectl.obj and object2.obj as its
object
files, and
prompts
for
the
next
file:
Run
File
[object1.EXE1:
exec
List
File
[NUL.MAP]:
Libraries
[.LIB]:
@library
You
include
the
name exec
so
that
the
linker will
name
the
exe-
cutable
file exec.exe. You
then
press
the
RETURN
key
to
indicate
that
no
map file is desired,
and
you
enter
@library
so
that
the
linker will read in
the
response
file containing
the
four library
filenames.
[
[
[
[
[
[
[

Table of Contents

Related product manuals