Author |
Topic |
|
Erik Olofsson
Tomato Guru
111 Posts |
Posted - Jun 26 2004 : 7:59:11 PM
|
Consider the following:
Directory structure: Source/Main/Projects/MyProject/MySubProject/MyProject.vcproj Source/Main/SDK/ATLMfc/Include
In project I have added the following "Additional Include Directories": ../..,PCHGui,../../../SDK/AtlMfc/include
stdafx.h: #include "afxwin.h" <- Here include is not found
This is because (Checked with logging for vax enabled) ../../../SDK/AtlMfc/include has been matched to x:\\Apps\\Development\\VS.2003\\SDK\\AtlMfc\\include from X:\\Apps\\Development\\VS.2003\\Vc7\\PlatformSDK\\Include\\ (this is the only hardcoded path I have in Visual assist options)
It seems like the resolving stops after the first directory is found (SDK). It should continue until the whole path (SDK/AtlMfc/Include) is found.
|
Cutting Edge Project Management http://www.hansoft.se |
|
Erik Olofsson
Tomato Guru
111 Posts |
Posted - Jun 26 2004 : 8:29:33 PM
|
It's even worse. Having renamed VS.2003\\SDK to VS.2003\\DontFindMe.
This is what is reported in c:\\va.log: FindDir ERROR file not found afxwin.h, 1 SYS X:\\Apps\\Development\\VS.2003\\Vc7\\PlatformSDK\\Include; ADDL PROJ x:\\Apps\\Development\\VS.2003\\SDK\\AtlMfc\\include;x:\\Apps\\Development\\VS.2003\\Common7\\IDE\\%IntDir%;(Some projctDirs)
It also seems to fail to expand %IntDir%. The corresponding section in va.log: AdditionalIncludeDirectories (204 s) ..\\..,PCHGui,..\\..\\..\\SDK\\AtlMfc\\includeWTEES1: $(IntDir) WTEES2: WTExpandEnvironmentStrings $(IntDir) WTEES11: $(IntDir) WTEES21: %IntDir% ERROR: WTEES::ExpandEnvironmentStrings %IntDir%(00000009) WTEES3: %IntDir% AdditionalIncludeDirectories IntDir AdditionalIncludeDirectories ..\\..,PCHGui,..\\..\\..\\SDK\\AtlMfc\\includeWTEES1: $(IntDir) WTEES2: WTExpandEnvironmentStrings $(IntDir) WTEES11: $(IntDir) WTEES21: %IntDir% ERROR: WTEES::ExpandEnvironmentStrings %IntDir%(00000009) WTEES3: %IntDir% AdditionalIncludeDirectories IntDir AdditionalIncludeDirectories ..\\..,PCHGui,..\\..\\..\\SDK\\AtlMfc\\includeWTEES1: $(IntDir) WTEES2: WTExpandEnvironmentStrings $(IntDir) WTEES11: $(IntDir) WTEES21: %IntDir% ERROR: WTEES::ExpandEnvironmentStrings %IntDir%(00000009) WTEES3: %IntDir% AdditionalIncludeDirectories IntDir AdditionalIncludeDirectories ..\\..,PCHGui,..\\..\\..\\SDK\\AtlMfc\\includeWTEES1: $(IntDir) WTEES2: WTExpandEnvironmentStrings $(IntDir) WTEES11: $(IntDir) WTEES21: %IntDir% ERROR: WTEES::ExpandEnvironmentStrings %IntDir%(00000009) WTEES3: %IntDir% AdditionalIncludeDirectories IntDir IntermediateDirectory .\\Intermediate\\$(SolutionName)\\$(PlatformName)\\$(ProjectName)\\$(ConfigurationName)IntermediateDirectory .\\Intermediate\\$(SolutionName)\\$(PlatformName)\\$(ProjectName)\\$(ConfigurationName)IntermediateDirectory .\\Intermediate\\$(SolutionName)\\$(PlatformName)\\$(ProjectName)\\$(ConfigurationName)IntermediateDirectory .\\Intermediate\\$(SolutionName)\\$(PlatformName)\\$(ProjectName)\\$(ConfigurationName)RelativePath
Removing all paths in VAX stable includes: FindDir ERROR file not found afxwin.h, 1 SYS C:\\TempInc; ADDL PROJ x:\\Apps\\Development\\VS.2003\\SDK\\AtlMfc\\include;x:\\Apps\\Development\\VS.2003\\Common7\\IDE\\%IntDir%;(some project dirs) |
Cutting Edge Project Management http://www.hansoft.se |
|
|
Erik Olofsson
Tomato Guru
111 Posts |
Posted - Jun 26 2004 : 8:43:43 PM
|
I got it working after removing $(IntDir) from additional include directories from Project Settings->Resources->General->Additional Include Directories
So the real culprit was the unresolved $(IntDir)
|
Cutting Edge Project Management http://www.hansoft.se |
Edited by - Erik Olofsson on Jun 26 2004 8:44:01 PM |
|
|
LarryLeonard
Tomato Guru
USA
1041 Posts |
|
Erik Olofsson
Tomato Guru
111 Posts |
Posted - Jun 27 2004 : 2:17:01 PM
|
If it's not possible to resolve the paths, va should not use the path at all. Instead of using x:\\Apps\\Development\\VS.2003\\Common7\\IDE\\%IntDir% it could simply ignore the path if not beeing able to resolve it. |
Cutting Edge Project Management http://www.hansoft.se |
|
|
|
Topic |
|