The figure below illustrates a simple case in which you create an application that uses a single dynamic-link library (.DLL) file.
ÚÄÄÄÄÄÄÄÄÄÄ¿ ÚÄÄÄÄÄÄÄÄÄ¿ ÚÄÄÄÄÄÄÄÄÄ¿ ÚÄÄÄÄÄÄÄÄÄÄ¿
³ .OBJ and ³ ³.DEF file³ ³.LIB file³ ³ .OBJ and ³
³.LIB files³ ³(LIBRARY)³ ³(imports)³ ³.LIB files³
³ ³ ³(exports)³ ³ ³ ³ ³
ÀÄÄÄÄÂÄÄÄÄÄÙ ÀÄÄÂÄÄÄÂÄÄÙ ÀÄÄÂÄÄÄÂÄÄÙ ÀÄÄÄÄÂÄÄÄÄÄÙ
³ ³ ³ ³ ³ ³
ÀÄÄÄÄÄÄÂÄÄÄÄÄÙ ³ ÀÄÄÄÄÄÂÄÄÄÄÄÙ
³ ÀÄ(2) IMPLIBÄÙ ³
(1) LINK386 (3) LINK386
³ ³
ÚÄÄÄÄÁÄÄÄÄ¿ ÚÄÄÄÄÄÄÁÄÄÄÄÄÄ¿
³.DLL file³ ³ .EXE file ³
³(library)³ ³(application)³
ÀÄÄÄÄÄÄÄÄÄÙ ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
As depicted above, linking occurs in three steps: