Bug 132131 - Workspace-related Include path entries displayed in the "C/C++ Projects" view are not browsable
Summary: Workspace-related Include path entries displayed in the "C/C++ Projects" view...
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-16 06:32 EST by shai CLA
Modified: 2020-09-04 15:21 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description shai CLA 2006-03-16 06:32:33 EST
Hi,

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 include 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,
shai
Comment 1 Leo Treggiari CLA 2006-03-16 10:07:32 EST
The include paths must be relative to where the compiler is run.  Managed Make project builds take place in the project subdirectory that gets its name from the configuration.  That's where Debug comes from.

Here are 2 alternatives to get this to work:

1.  Use  ../driver/include
2.  Use  ${ProjDirPath}/driver/include
Comment 2 shai CLA 2006-03-16 11:29:46 EST
(In reply to comment #1)
> The include paths must be relative to where the compiler is run.  Managed Make
> project builds take place in the project subdirectory that gets its name from
> the configuration.  That's where Debug comes from.
> Here are 2 alternatives to get this to work:
> 1.  Use  ../driver/include
> 2.  Use  ${ProjDirPath}/driver/include

i did this and now the path is correct but still some folders dont have a "+" sign next to them and it looks like they have no files inside and i dont get the h files i need. some folders work fine.

any idea ?



Comment 3 Leo Treggiari CLA 2006-03-30 17:00:51 EST
Hi Shai,

I'm able to reproduce the problem that you are seeing.  Unfortunately, I don't have time now to investigate this further, so I'll leave it "reopened".

Regards,
Leo
Comment 4 Mikhail Sennikovsky CLA 2006-05-04 10:39:49 EDT
This is not a Managed Build System bug.
I see the same behavior with the standard make projects as well:
If I add an include path (via "C/C++ Include Paths&Symbols" property page) that corresponds to some workspace resource, include paths entry displayed in the "C/C++ Projects" view has a different icon, displays the workspace path instead of file system location and is not is not browsable.

I suppose this was done intentionaly, but let's see what the core guys say about it.

I'll change the bug summary and the component.