[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools.cdt] Re: OK, I give - how do I make indexing work?

Keath Milligan wrote:
Using Eclipse 3.1 + CDT 3.0 on Windows (I get the same behavior under Linux as well).

I have a large, pre-existing project (thousands of files) that I am trying to incorporate Eclipse into. So far, I've managed to get basic development and source-level debugging working, but I can't get any of the following search-related features to work:

Open Definition
Open Declaration
All Declarations
All References

All References will only find references within the file I am currently editing, but no where else. All of the other functions return nothing.

All of the involved source files and headers are within the project. I've tried explicitly setting include paths, source paths and binary paths all to no effect. I've tried automatic discovery of paths and symbols and CTags vs Full Indexing. I've tried recreating the project in a variety of different ways - all to no avail.

At this point, I'm looking at the CDT source code trying to figure out how the indexer works, but it sure would be nice if someone in the know could write a document on getting this to work with REAL WORLD projects beyond the simplistic Hello, World examples in the current docs.

One thing you *might* try...

If you open your Project Properties window and go to the C/C++ Include Paths and Symbols, you'll see all the paths to your include files, both discovered and explicit.

Among the explicit include paths are two types: Internal and External. Internal paths are those that are part of the project. External paths are those outside the project. However, you can create an External path to a directory that is actually inside the project.

There was a time when creating an Internal include path to a directory wouldn't work, but creating an External include path to the very same directory *did* work. This has presumably been fixed and will no longer help you. But, you might want to try it. My admittedly less-than-definitive experiments suggest that this still may be an issue.

FWIW. YMMV.