The Linker

The general format of a link command line is as follows:

lcclnk [options] object-files library-files

The linker will default to the following import libraries:

LIBC.LIB                     A few C functions are in here

KERNEL32.LIB         Kernel function calls

COMDLG32.LIB       Common dialog boxes library

USER32.LIB              Windows 'user' functions

GDI32.LIB                  GDI functions

ADVAPI32.LIB          More Windows functions

COMCTL32.LIB        Library for the common controls of Win32

CRTDLL.LIB              Library for the 'C' runtime functions

These libraries do not need to be specified in the command line because the linker will search them anyway.

The name of the object file can be an expandable file specification. For instance: '*.obj'. If the name of the file begins with an '@', it will be interpreted as a list of object files to be included in the link. For instance you can say:

lcclnk @list.lst

which will cause lcclnk to open a 'list.lst' file and to read the file names to be used in the link.

 The contents of that file could be:

h:\mywork\src\file1.obj

h:\mywork\lib\mylib.lib

etc.

 One line should have only one file name. This option is especially useful if you have too many files in the command line, which is limited by Win32.