Eh, why can't VS2005 find my include files?
-
Hi, I am creating a dialog based app in VS2005 and I am having an annoying problem: Visual Studio can't see some of my include files, even though they are in the same directory as others it can see. Basically, I am using includes from three locations: [1] System headers [2] headers in the project directory [3] headers in a seperate directory common to a family of projects. I have listed [3] under Properties->General->Additional Include Directories" What it seems like is if VS2005 is working on a header file in place [3] and the file specifies an include located in [2] it won't be able to find it -- unless I move it to [3]. Any help appreciated! @LRG
-
Hi, I am creating a dialog based app in VS2005 and I am having an annoying problem: Visual Studio can't see some of my include files, even though they are in the same directory as others it can see. Basically, I am using includes from three locations: [1] System headers [2] headers in the project directory [3] headers in a seperate directory common to a family of projects. I have listed [3] under Properties->General->Additional Include Directories" What it seems like is if VS2005 is working on a header file in place [3] and the file specifies an include located in [2] it won't be able to find it -- unless I move it to [3]. Any help appreciated! @LRG
Did you include your headers using double quotes instead of angle brackets?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
[my articles] -
Did you include your headers using double quotes instead of angle brackets?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
[my articles] -
Yes - all of my includes are as such: In "Joint.h" -- #include "DOF.h" If DOF.h and Joint.h are not in the same directory then VS will not find them... Thanks - @LRG
VS can't find files without a path. You can add paths for executables/headers/source/etc. in the VS settings at Tools (menu)/Options/Projects and Solutions/VC++ Directories. Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
VS can't find files without a path. You can add paths for executables/headers/source/etc. in the VS settings at Tools (menu)/Options/Projects and Solutions/VC++ Directories. Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
Hi Mark, Thanks again for your help. My question would be why can't VS figure out that if I am creating a project in a certain directory, that particular directory should be included in the list of paths to search? Eh! Thanks - @LRG
hmm I don't know - that's never happened to me :) Mark
Mark Salsbery Microsoft MVP - Visual C++ :java: