Developer Guide and Reference

Contents

Yd

Tells the compiler to add complete debugging information in all object files created from a precompiled header file when option /Zi or /Z7 is specified. This is a deprecated option. There is no replacement option.

Syntax

Linux and macOS:
None
Windows:
/Yd
Arguments
None
Default
OFF
If
/Zi
or
/Z7
is specified when you are compiling with a precompiled header file using
/Yc
or
/Yu
, only one .obj file contains the common debugging information.
Description
This option tells the compiler that complete debugging information should be added to all object files created from a precompiled header (PCH) file when option
/Zi
or
/Z7
is specified. It affects precompiled header files that were created by specifying the
/Yc
option.
Option
/Yd
has no effect unless option
/Zi
or
/Z7
is specified.
When option
/Zi
or
/Z7
is specified and option
/Yd
is omitted, the compiler stores common debugging information in only the first object (.obj) file created from the PCH file. This information is not inserted into any .obj files subsequently created from the PCH file, only cross-references to the information are inserted.
Alternate Options
None