Skip to content

Latest commit

 

History

History
54 lines (35 loc) · 2.16 KB

fd-program-database-file-name.md

File metadata and controls

54 lines (35 loc) · 2.16 KB
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: /Fd (Program Database File Name)
/Fd (Program Database File Name)
11/04/2016
/FD
VC.Project.VCCLWCECompilerTool.ProgramDataBaseFileName
VC.Project.VCCLCompilerTool.ProgramDataBaseFileName
/FD compiler option [C++]
program database file name [C++]
-FD compiler option [C++]
PDB files, creating
program database compiler option [C++]
.pdb files, creating
FD compiler option [C++]
3977a9ed-f0ac-45df-bf06-01cedd2ba85a

/Fd (Program Database File Name)

Specifies a file name for the program database (PDB) file created by /Z7, /Zi, /ZI (Debug Information Format).

Syntax

/Fdpathname

Remarks

Without /Fd, the PDB file name defaults to VCx0.pdb, where x is the major version of Visual C++ in use.

If you specify a path name that does not include a file name (the path ends in backslash), the compiler creates a .pdb file named VCx0.pdb in the specified directory.

If you specify a file name that does not include an extension, the compiler uses .pdb as the extension.

This option also names the state (.idb) file used for minimal rebuild and incremental compilation.

To set this compiler option in the Visual Studio development environment

  1. Open the project's Property Pages dialog box. For details, see Set C++ compiler and build properties in Visual Studio.

  2. Select the Configuration Properties > C/C++ > Output Files property page.

  3. Modify the Program Database File Name property.

To set this compiler option programmatically

  • See xref:Microsoft.VisualStudio.VCProjectEngine.VCCLCompilerTool.ProgramDataBaseFileName%2A.

Example

This command line creates a .pdb file named PROG.pdb and an .idb file named PROG.idb:

CL /DDEBUG /Zi /FdPROG.PDB PROG.CPP

See also

Output-File (/F) Options
MSVC Compiler Options
MSVC Compiler Command-Line Syntax
Specifying the Pathname