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³ ³.DEF file³ ³ .OBJ and ³ ³.LIB files³ ³(LIBRARY)³ ³(imports)³ ³.LIB files³ ³ ³ ³(exports)³ ³ ³ ³ ³ ÀÄÄÄÄÂÄÄÄÄÄÙ ÀÄÄÄÄÂÄÄÄÄÙ ÀÄÄÄÄÂÄÄÄÄÙ ÀÄÄÄÄÄÂÄÄÄÄÙ ³ ³ ³ ³ ÀÄÄÄÄÄÄÂÄÄÄÄÄÄÙ ÀÄÄÄÄÄÄÂÄÄÄÄÄÄÙ ³ ³ (1) LINK386 (2) LINK386 ³ ³ ÚÄÄÄÄÁÄÄÄÄ¿ ÚÄÄÄÄÄÄÁÄÄÄÄÄÄ¿ ³.DLL file³ ³ .EXE file ³ ³(library)³ ³(application)³ ÀÄÄÄÄÄÄÄÄÄÙ ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
As depicted above, linking occurs in two steps: