Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 VAX 1240: File Include Path not found
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Erik Olofsson
Tomato Guru

111 Posts

Posted - Jun 26 2004 :  7:59:11 PM  Show Profile
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  Show Profile
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
Go to Top of Page

Erik Olofsson
Tomato Guru

111 Posts

Posted - Jun 26 2004 :  8:43:43 PM  Show Profile
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
Go to Top of Page

LarryLeonard
Tomato Guru

USA
1041 Posts

Posted - Jun 27 2004 :  10:47:40 AM  Show Profile
See: http://forum.wholetomato.com/forum/topic.asp?TOPIC_ID=434&SearchTerms=environment,variable
Go to Top of Page

Erik Olofsson
Tomato Guru

111 Posts

Posted - Jun 27 2004 :  2:17:01 PM  Show Profile
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
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000