BUG: Source Files Are Not Being Compiled When Included Header Files Are Modified (251116)



The information in this article applies to:

  • Microsoft Visual C++, 32-bit Enterprise Edition 5.0
  • Microsoft Visual C++, 32-bit Enterprise Edition 6.0
  • Microsoft Visual C++, 32-bit Professional Edition 5.0
  • Microsoft Visual C++, 32-bit Professional Edition 6.0
  • Microsoft Visual C++, 32-bit Learning Edition 6.0

This article was previously published under Q251116

SYMPTOMS

When modifying a header file and then compiling the project, the source files that include the modified header are not recompiled.

CAUSE

This can happen if the Intermediate files edit box, which is on the General tab accessible from Settings on the Project menu, is left blank.

RESOLUTION

If you want the intermediate files to be placed in the project directory, place a
.
				
-or-
.\ 
				
in the Intermediate files edit box on the General tab of Settings under the Project menu.

STATUS

Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.

MORE INFORMATION

Unless you use an absolute path for intermediate and output files, directories entered are relative to the project directory. The project directory is defined as the directory that contains the project's .dsp file.

Steps to Reproduce Behavior

  1. Create a default MFC AppWizard project.
  2. Select Settings from the Project menu.
  3. Select the General tab.
  4. Clear the Intermediate files edit box and click OK.
  5. Build the project.
  6. Open a header file contained in the project and modify it.
  7. Build the project again.

Modification Type:MajorLast Reviewed:12/11/2003
Keywords:kbBug kbCompiler kbide kbpending KB251116