|Re: help: invalid include path [message #165978 is a reply to message #165950]
||Fri, 17 March 2006 02:43
Originally posted by: sscout.gmpexpress.net|
> when i add an include path to my project it add the Debug directory to
> the path
> and i get an invalid path.
> for example, my project name is "STB" and it located at "c:\workspace\STB".
> i have added the path "driver/include". on my project space under the
> folder i see the following path: "STB/Debug/driver/include".
> i have no clue y this happens and i cant compile my prohect since it doesnt
> find my include files...
> please check this out.
> thanks alot,
You need to understand that in managed make projects, the system include
paths are all automatically added for you - whether CDT uses absolute or
relative path names, it always does this right. As a consequence, CDT
can set the build system's working directory to wherever it wishes - and
in this case, it has set the working directory to be the Debug
directory. All relative path names are interpreted from the working
directory. I say you need to understand this because it will affect ANY
relative path you enter, not just for include path resolution.
Hopefully you'll have a better idea what to look for if something
similar happens in the future.
To resolve the path name properly, change the local include path like so:
Alternatively, you could use an absolute path name, but that makes it
much easier for someone to break your makefiles if you re-distribute
your program in source code form - if they put the source in a different
folder, the absolute path to your project (and thus your include
directory) will not be what the makefile expects.
Powered by FUDForum
. Page generated in 0.05592 seconds