Basic - DOS BASIC - VBDOS - LINK

LINK.EXE combines object files (.OBJ - produced by BC.EXE) and libraries (.LIB - produced by LIB.EXE) into a single executable file (.EXE) or a Quick library (.QLB).

Command Line:

LINK [options] objfiles [,[exefile] [,[mapfile] [,[libs] [,[defs]]]]] [;]

options
/?   Displays available command-line options.
/BA Prevents LINK from prompting for path.
/CO Prepares program for debugging with Microsoft CodeView.
/DO Forces a special ordering on segments;
not for use in custom run-time modules.
/DY[:n] Changes limit n of inter-overlay calls in an overlaid MS-DOS program;
default is 256, allowed range 1 - 10,922.
/E Packs executable files during linking.
/F Optimizes far calls to procedures in same segment as the caller;
use with /PACKC to improve performance.
/HE Lists LINK options to standard output.
/INF Displays linker-process information.
/LI Includes line numbers in map file.
/M Lists public symbols defined in object file.
/NOD Ignores default libraries during linking.
/NOE Ignores extended dictionary during linking.
/NOF Disables far-call optimizing.
/NOI Preserves case sensitivity.
/NOL Suppresses sign-on logo.
/NON Works the same as /DO, except no null bytes are inserted at the beginning of _TEXT segment.
/NOP Disables segment packing (/PACKC).
/NOPACKF Prevents removal of unreferenced packaged functions.
/O:number Specifies interrupt number other than 0x3F for passing control to overlays.
/ON:N Prevents LINK from creating the program output if error occurs.
/PACKC Packs contiguous code segments.
/PACKD Combines adjacent data-segment definitions into same physical segment.
/PACKF (Default) Removes unreferenced packaged functions.
/PAU Causes LINK to pause before writing .EXE file to disk.
/Q Produces Quick library for use with Visual Basic.
/r Prevents LINK from using extended memory under MS-DOS;
must appear first in options list.
/SE:number Sets maximum number of segments that the linker allows.
/W Issues fixup warnings; for Basic programs, use with /NOP.
 
objfiles
Object modules (.OBJ) or libraries (.LIB) to link;
multiple object files are separated with spaces or plus signs (+).
 
exefile
Name of executable file or Quick Library to create.
 
mapfile
Map file to create.
 
libs
Libraries to link with object file.
 
defs
Definitions file.
 
;
Uses default values for remaining fields;
if omitted, LINK prompts you for remaining parameters.

Examples:

LINK /Q PRINT+VBDOS.LIB, SPEC.QLB, SPEC.MAP, VBDOSQLB.LIB;
options   /Q : produce Quick Library
objfiles PRINT+VBDOS.LIB
exefile SPEC.QLB : a Quick Library
mapfile SPEC.MAP
libs VBDOSQLB.LIB : the standard library used to produce Quick Libraries
; use default for defs