Article ID: 100084
Article Last Modified on 10/2/2003
-LINK Create an executable file (linking) -LIB Create or modify a library (librarian) -DUMP Display information about a libraryThe LINK32 librarian is a fairly simple tool that adds, removes, and extracts COFF object files from libraries.
-DEBUGTYPE:{COFF|CV|BOTH} Do not use
-DEF:[filename] Create an import library
-EXTRACT:membername Extract an object file from a library
-LIST List object files in a library
-MACHINE:i386 Required with the -DEF option,
not used otherwise
-OUT:filename Specifies library name
-REMOVE:membername Remove object module from library
-SUBSYSTEM Do not use
-VERBOSE Do not use
The following examples demonstrate using these options to perform
common library management tasks.
LINK32 -LIB -OUT:TEST.LIB A.OBJ B.OBJ
LINK32 -LIB TEST.LIB A.OBJ B.OBJ
LINK32 -LIB -LIST TEST.LIB >TEST.LSTThis command line generates a listing that contains the names of the object files in the library; the listing does not list the routines in each object file. To retrieve this information, use the -DUMP option.
LINK32 -LIB TEST.LIB -REMOVE:A.OBJ LINK32 -LIB TEST.LIB A.OBJNo single command can do this. Avoid the following commands:
LINK32 -LIB TEST.LIB A.OBJ !if A.OBJ is in TEST.LIB LINK32 -LIB TEST.LIB A.OBJ -OUT:TEST.LIB LINK32 -LIB TEST.LIB -REMOVE:A.OBJ A.OBJNOTE: Modules cannot be added to a library which has had all of the modules removed.
LINK32 -LIB -LISTIn other words, -REMOVE is case sensitive.
Additional query words: kbinf 1.00 1.00a
Keywords: KB100084