BUG: External Dependencies May Be in Exported MakefileID: Q168112
|
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"
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.
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article.
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
Version : winnt:5.0,6.0
Platform : winnt
Issue type : kbbug
Last Reviewed: May 17, 1999