Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » CDT 40 RC0 Indexing
CDT 40 RC0 Indexing [message #190779] Sat, 05 May 2007 10:27 Go to next message
Eclipse UserFriend
I have downloaded Eclipse 3.3M7 and CDT 4.0RC0 to test out. Generally
looks good. You had me hooked with the new semantic highlighting in the
earlier candidates. Good Job. And now with the "ctrl-E" switching
between headers and implementation files even better..
But as usual I am having a problem with the indexing of my project.
Since I use CMake (www.cmake.org) to generate the makefiles I use the
"Standard C++ Makefile Project". I have the indexer set to the "fast"
selection. My project is laid out so that I have a "src" directory
where all my sources/headers are located. Inside of "src" there are
other directories to organize the project as much as I can. My makefile
includes an entry to include "./src" as an include folder. In my source
files I have things like:
#include "Headers/MXATypeDefs.h" where "Headers" is a folder inside of src.

So with all this information any clue why the indexer is missing some
of my C++ classes? It picks up some of them but not all of them. In
some of my headers I forward declare classes. Would that cause a
problem with the indexer? I have tried rebuilding the index several
times. Added all sorts of variations of the "src" folder as an include
path (as a workspace folder, as a folder, as an external path) and the
indexer still seems to miss some of my classes.

Is there a log somewhere that I can look at to see if the indexer is
crashing or otherwise exiting early?

I can make my project source available if needed. Hope to hear from
someone on this.

THanks for the great IDE.

Mike Jackson
Re: CDT 40 RC0 Indexing [message #190787 is a reply to message #190779] Sat, 05 May 2007 10:40 Go to previous messageGo to next message
Eclipse UserFriend
Just to follow up with this:
If I right click on the project and go to "Index->Freshen All
Files", then the classes that were not indexed properly are now
indexed. Hope that helps.

Mike

On 2007-05-05 10:27:34 -0400, Mike Jackson <imikejackson@gmail.com> said:

> I have downloaded Eclipse 3.3M7 and CDT 4.0RC0 to test out. Generally
> looks good. You had me hooked with the new semantic highlighting in the
> earlier candidates. Good Job. And now with the "ctrl-E" switching
> between headers and implementation files even better..
> But as usual I am having a problem with the indexing of my project.
> Since I use CMake (www.cmake.org) to generate the makefiles I use the
> "Standard C++ Makefile Project". I have the indexer set to the "fast"
> selection. My project is laid out so that I have a "src" directory
> where all my sources/headers are located. Inside of "src" there are
> other directories to organize the project as much as I can. My makefile
> includes an entry to include "./src" as an include folder. In my source
> files I have things like:
> #include "Headers/MXATypeDefs.h" where "Headers" is a folder inside of src.
>
> So with all this information any clue why the indexer is missing some
> of my C++ classes? It picks up some of them but not all of them. In
> some of my headers I forward declare classes. Would that cause a
> problem with the indexer? I have tried rebuilding the index several
> times. Added all sorts of variations of the "src" folder as an include
> path (as a workspace folder, as a folder, as an external path) and the
> indexer still seems to miss some of my classes.
>
> Is there a log somewhere that I can look at to see if the indexer is
> crashing or otherwise exiting early?
>
> I can make my project source available if needed. Hope to hear from
> someone on this.
>
> THanks for the great IDE.
>
> Mike Jackson
Re: CDT 40 RC0 Indexing [message #190805 is a reply to message #190787] Sun, 06 May 2007 06:11 Go to previous message
Eclipse UserFriend
Hi,

You can set Yours include path in project properties.

Go to menu Project->Properties and then select C/C++ General->Paths and
Symbols.
In "Includes" tab You can add Your include paths, same as fo compiler
switch -I
Additionally, You can put all Your "defines" on "Symbols" tab.

Best Regards
AK

Mike Jackson pisze:
> Just to follow up with this:
> If I right click on the project and go to "Index->Freshen All Files",
> then the classes that were not indexed properly are now indexed. Hope
> that helps.
>
> Mike
>
> On 2007-05-05 10:27:34 -0400, Mike Jackson <imikejackson@gmail.com> said:
>
>> I have downloaded Eclipse 3.3M7 and CDT 4.0RC0 to test out. Generally
>> looks good. You had me hooked with the new semantic highlighting in
>> the earlier candidates. Good Job. And now with the "ctrl-E" switching
>> between headers and implementation files even better..
>> But as usual I am having a problem with the indexing of my project.
>> Since I use CMake (www.cmake.org) to generate the makefiles I use the
>> "Standard C++ Makefile Project". I have the indexer set to the "fast"
>> selection. My project is laid out so that I have a "src" directory
>> where all my sources/headers are located. Inside of "src" there are
>> other directories to organize the project as much as I can. My
>> makefile includes an entry to include "./src" as an include folder. In
>> my source files I have things like:
>> #include "Headers/MXATypeDefs.h" where "Headers" is a folder inside of
>> src.
>>
>> So with all this information any clue why the indexer is missing some
>> of my C++ classes? It picks up some of them but not all of them. In
>> some of my headers I forward declare classes. Would that cause a
>> problem with the indexer? I have tried rebuilding the index several
>> times. Added all sorts of variations of the "src" folder as an include
>> path (as a workspace folder, as a folder, as an external path) and the
>> indexer still seems to miss some of my classes.
>>
>> Is there a log somewhere that I can look at to see if the indexer is
>> crashing or otherwise exiting early?
>>
>> I can make my project source available if needed. Hope to hear from
>> someone on this.
>>
>> THanks for the great IDE.
>>
>> Mike Jackson
>
>
Previous Topic:Add (not import) a file to project
Next Topic:Cannot find cdt.managedbuilder.ui.newWizardPage
Goto Forum:
  


Current Time: Wed Jul 23 14:50:12 EDT 2025

Powered by FUDForum. Page generated in 0.03851 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top