Syntax

SYNTAX DEFINITIONS

The LINK386 command line includes the following fields:

<options>

<Object Files> <exefile> <mapfile> <libraries> <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]