BullseyeCoverage Up Contents Search

Visual Studio Does Not Rebuild After Modifying Header

SYMPTOMS

With Microsoft Visual Studio 2008, the Build command does not re-compile any sources even though a header file in the project was modified.

CAUSE

Microsoft Visual Studio fails to record dependency information when preprocessing is performed separately from compiling, as BullseyeCoverage does.

RESOLUTION

There are two alternative resolutions.

MORE INFORMATION

The Microsoft C++ compiler generates dependency information into a file named project.pdb during preprocessing. BullseyeCoverage feeds the compiler preprocessed source files. Microsoft C++ records only dependency information for the main source file but not the header files named by #line directives.

Updated: 5 Jan 2021