Syntax
LINK386 [options] objfiles [,exefile, mapfile, libraries, deffile]
OR
LINK386 @responsefile
SYNTAX DEFINITIONS
The LINK386 command line includes the following fields:
<options>
Options modifying actions of LINK386.
Options can appear anywhere on the command line except immediately after
the commas used to separate fields. See Options
and Using LINK386 Options.
<Object Files>
Object
files to be linked. Separate multiple file names by plus (+) or space characters.
At least one name must be entered. Library files can also be entered. See
Entering Library Files as Object
Files.
<exefile>
Output
of file. LINK386 produces either an executable file, a dynamic-link library,
or a device driver.
<mapfile>
Map
file created that lists modules in <exefile>. Use the /M option to
include public symbols in this file. Enter NUL if you do not want a map
file. See List Public Symbols (/M).
<libraries>
Standard
or import (not dynamic-link) libraries to be used in resolving external
references. Separate multiple file names by plus (+) or space characters.
Some libraries are searched by default. You can also specify a path to a
directory -- LINK386 will search for libraries in a path specified on the
<libraries> line before searching directories given by the LIB environment
variable. See Linking with an
Import Library, Default Libraries
and Specifying Library Directories.
<deffile>
SYNTAX EXAMPLES
The following command links the object files FUN.OBJ, TEXT.OBJ, TABLE.OBJ,
and CARE.OBJ. LINK386 searches for unresolved external references in the
library file XLIB.LIB and in the default libraries. By default, the executable
file is named FUN.EXE. LINK386 also produces a map file, FUNLIST.MAP.
LINK386 FUN+TEXT+TABLE+CARE, ,FUNLIST, XLIB.LIB;
The following command produces a map file named FUN.MAP because a comma
appears as a placeholder for <mapfile>.
LINK386 FUN,,;
The next pair of command lines do not produce a map file because commas
do not appear as placeholders for <mapfile>.
LINK386 FUN,;
LINK386 FUN;
The following command links the files MAIN.OBJ, GETDATA.OBJ, and PRINTIT.OBJ
into an executable file named MAIN.EXE. A map file named MAIN.MAP is also
produced.
LINK386 MAIN+GETDATA+PRINTIT, , MAIN;
The following command links GETDATA.OBJ and PRINTIT.OBJ into an OS/2 dynamic-link
library. MODDEF.DEF must contain a LIBRARY statement to produce the dynamic-link
library.
LINK386 GETDATA+PRINTIT,GETDATA.DLL, , MODDEF
[Back: Starting LINK386]
[Next: Object Files]