.PDB Files as Linker Input

HomeOverviewFAQDetailsLinker Options

Object (.OBJ) files compiled using the /Zi option contain the name of a program database (PDB). You do not specify the object’s PDB file name to the linker; LINK uses the embedded name to find the PDB if it is needed. This also applies to debuggable objects contained in a library; the PDB for a debuggable library must be available to the linker along with the library.

LINK also uses a PDB to hold debugging information for the .EXE file or .DLL file. The program’s PDB is both an output file and an input file, because LINK updates the PDB when it rebuilds the program.