Microsoft KB Archive/251116

= BUG: Source Files Are Not Being Compiled When Included Header Files Are Modified =

Article ID: 251116

Article Last Modified on 12/11/2003

-

APPLIES TO


 * Microsoft Visual C++ 5.0 Enterprise Edition
 * Microsoft Visual C++ 6.0 Enterprise Edition
 * Microsoft Visual C++ 5.0 Professional Edition
 * Microsoft Visual C++ 6.0 Professional Edition
 * Microsoft Visual C++ 6.0 Standard Edition

-



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.

Keywords: kbbug kbide kbpending kbcompiler KB251116

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.