Microsoft KB Archive/168112

{|
 * width="100%"|

BUG: External Dependencies May Be in Exported Makefile

 * }

Q168112

-

The information in this article applies to:


 * Microsoft Visual C++, 32-bit Enterprise Edition, versions 5.0, 6.0
 * Microsoft Visual C++, 32-bit Professional Edition, versions 5.0, 6.0
 * Microsoft Visual C++, 32-bit Learning Edition, version 6.0

-

SYMPTOMS
When you export a makefile from Visual C++ 5.0, files that are considered to be external dependencies may be included as dependencies in the exported makefile. For instance, if a file "..\dev\langapi\include\version.h" is in the External Dependencies folder in Developer Studio, after you export the makefile, you may see it in a line that declares the dependencies for a source file, such as:

  DEP_CPP_ABOUT_C=\ "..\dev\langapi\include\version.h"          ".\aboutdlg.h"

RESOLUTION
This bug should not cause any build problems on the machine that the makefile was exported on. It may reduce the sharability of the makefile.

You may be able to work around this problem by editing the registry key HKEY_CURRENT_USER\Software\Microsoft\DevStudio\5.0\Build System. Change the value for "Makefile Sharability" from 1 (the default) to 2.

This may not eliminate the file from the dependency list, but it does cause Developer Studio to work harder at making paths relative. This should alleviate some of the sharability problems arising from this bug.

STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article.

MORE INFORMATION
The value "Makefile Sharability" under the registry key HKEY_CURRENT_USER\Software\Microsoft\DevStudio\5.0\Build System may hold a value between 0 and 2 inclusively. The default value is 1. This value affects how much work Developer Studio does in making paths to files relative in exported makefiles.

0 = Low sharability. Don't expend extra effort in making file paths relative. Full paths are written to the makefile.

1 = Normal. Expend a reasonable amount of effort in making file paths relative.

2 = High. Make all file paths relative if at all possible. Some paths may be assumed to be in an environment variable INCLUDE2 which is not set by the makefile or Developer Studio. The makefile user must set the environment variable manually.

Only the setting of 1 (the default) has been tested thoroughly. By changing this setting, you may experience other problems with the filenames in the exported makefile.

Additional query words:

Keywords : kbtool kbide kbVC kbVC500bug kbVC600bug kbGrpDSTools

Issue type : kbbug

Technology : kbVCsearch kbAudDeveloper kbVC32bitSearch kbVCPE500 kbVCPE600 kbVCEE500 kbVCEE600 kbVCLE600