Adding path to C/C++ indexer for a project [message #107470] |
Thu, 24 June 2004 13:50  |
Eclipse User |
|
|
|
Originally posted by: pardsbane.offthehill.org
We are using a standard C++ projects, not the managed make ones, and I
have two projects in my Workspace: A, and B. B includes files from A, so
I'd like to get the C++ Indexer to parse A's headers. Where do I tell
the indexer to look at A's headers?
Also, another trick is that B's include path is A\.., not A. What I mean
is that in a B\foo.cpp, there would be a line like:
#include <A\bar.h>
So if I added project A to the indexer's path, it would look for the
header A\A\bar.h, not A\bar.h, right? Is there a way to add A\.. to the
indexer path?
I hope that makes sense, but just knowing where in the UI to find the
settings would be helpful.
-Josh
|
|
|
Re: Adding path to C/C++ indexer for a project [message #107526 is a reply to message #107470] |
Thu, 24 June 2004 15:13  |
Eclipse User |
|
|
|
As a recommendation, never use '\' within the includes.
Usually, every compiler should accept the '/' for the paths, even on
Windows.
To add a include path from another project, go to your project settings,
"C/C++ Include Paths & Symbols", select your project in the dialog and
use the "Add Include from Workspace", or if the included project is not
an Eclipse/CDT project within your workspace, the "Add External Include
Path" button. Select the directory and confirm it.
The "Add Contributed" button is for include paths found by the automatic
discovery scanner, which you can set/enable per project under
"C/C++-Make Project" on the last tab "Discovery Options" in your project
settings.
Joshua Pollak wrote:
> We are using a standard C++ projects, not the managed make ones, and I
> have two projects in my Workspace: A, and B. B includes files from A, so
> I'd like to get the C++ Indexer to parse A's headers. Where do I tell
> the indexer to look at A's headers?
>
> Also, another trick is that B's include path is A\.., not A. What I mean
> is that in a B\foo.cpp, there would be a line like:
>
> #include <A\bar.h>
>
> So if I added project A to the indexer's path, it would look for the
> header A\A\bar.h, not A\bar.h, right? Is there a way to add A\.. to the
> indexer path?
>
> I hope that makes sense, but just knowing where in the UI to find the
> settings would be helpful.
>
> -Josh
|
|
|
Powered by
FUDForum. Page generated in 0.26477 seconds