Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Eclipse/CDT - Code Indexing/Browsing problem- Help
Eclipse/CDT - Code Indexing/Browsing problem- Help [message #140723] Tue, 15 March 2005 02:43 Go to next message
Eclipse UserFriend
Originally posted by: sarvi.yahoo.com

We have an existing code base in unix that has its own Makefiles. they
seem to build fine when I issue a command such as "make install" on the
command line.
I am trying to use Eclipse+CDT to browse the source code. So I created
a Standard Make C++ project. Then added the unix folder containing the
source code as a linked in folder. The code is visible and I can click
and open specific files.

But when ever I mark a function name, and try to goto its declaration it
fails with a Error string in red saying this operation is not supported
for this file or something like that.
Ive notice this works if the function declaration is also within the
same file. But not if it is in a separate file.

My understanding is that eclipse has to do make operation so that
completes indexing and discovers all the include paths. So I did a "make
install" operation through eclipse which finishes without any apparent
error. But it still does not allow me to go from a function invocation
to its declaration.

Any suggestions as to what I might be doing wrong.

Thanks,
Sarvi
Re: Eclipse/CDT - Code Indexing/Browsing problem- Help [message #140835 is a reply to message #140723] Tue, 15 March 2005 14:33 Go to previous messageGo to next message
Eclipse UserFriend
Insted of linking in the folder, when you create the project try using the
location of your source for the project contents instead of using the
default location. Also in the wizard, hit next and go to the indexer tab
and disable the indexer to start. Then, build the project from within the
cdt (build all, ctrl+B, will call make, or you can do the make install).
Once the build is done, the cdt should have discovered your include paths
and built in symbols by parsing the build output (check this by going to
project properties, C/C++ Include Paths & Symbols tab). Then, go to your
project properties and turn the indexer back on. If an index doesn't start
running, close and reopen the project to trigger it.

If everything worked properly, you should now be able to use all the
navigation, search and content assist features.

-Andrew

"Sarvi" <sarvi@yahoo.com> wrote in message
news:d163nm$ohb$1@www.eclipse.org...
> We have an existing code base in unix that has its own Makefiles. they
> seem to build fine when I issue a command such as "make install" on the
> command line.
> I am trying to use Eclipse+CDT to browse the source code. So I created
> a Standard Make C++ project. Then added the unix folder containing the
> source code as a linked in folder. The code is visible and I can click
> and open specific files.
>
> But when ever I mark a function name, and try to goto its declaration it
> fails with a Error string in red saying this operation is not supported
> for this file or something like that.
> Ive notice this works if the function declaration is also within the
> same file. But not if it is in a separate file.
>
> My understanding is that eclipse has to do make operation so that
> completes indexing and discovers all the include paths. So I did a "make
> install" operation through eclipse which finishes without any apparent
> error. But it still does not allow me to go from a function invocation
> to its declaration.
>
> Any suggestions as to what I might be doing wrong.
>
> Thanks,
> Sarvi
>
Re: Eclipse/CDT - Code Indexing/Browsing problem- Help [message #141007 is a reply to message #140835] Wed, 16 March 2005 12:21 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: sarvi.yahoo.com

Hi Andrew,
Thanks for the response. I this approach yesterday.
I created a fresh worspace, started a C++ standard make project. And
changed the default location to to where my source is "/vob/bts". I then
went on to turn OFF Indexing. Then I made changes to Make section of the
project properties use "make install" instead of "make all"(thats what we
would have used to build the proejct from the unix command line, and "make
uninstall" to cleanup).

Anyway the build seemed to finish. There were a bunch of make failures.
But I noticed that the majority of the components and object files were
compiled.

Now when I check the C/C++ Include Paths & Symbols tab in the project
properties it has not discovered any include paths yet. I just went ahead
enabled indexing anyway just to see what happens. It starts the indexer.
When its done, I still cannot navigate around.

Sarvi

Andrew Niefer wrote:

> Insted of linking in the folder, when you create the project try using the
> location of your source for the project contents instead of using the
> default location. Also in the wizard, hit next and go to the indexer tab
> and disable the indexer to start. Then, build the project from within the
> cdt (build all, ctrl+B, will call make, or you can do the make install).
> Once the build is done, the cdt should have discovered your include paths
> and built in symbols by parsing the build output (check this by going to
> project properties, C/C++ Include Paths & Symbols tab). Then, go to your
> project properties and turn the indexer back on. If an index doesn't start
> running, close and reopen the project to trigger it.

> If everything worked properly, you should now be able to use all the
> navigation, search and content assist features.

> -Andrew

> "Sarvi" <sarvi@yahoo.com> wrote in message
> news:d163nm$ohb$1@www.eclipse.org...
>> We have an existing code base in unix that has its own Makefiles. they
>> seem to build fine when I issue a command such as "make install" on the
>> command line.
>> I am trying to use Eclipse+CDT to browse the source code. So I created
>> a Standard Make C++ project. Then added the unix folder containing the
>> source code as a linked in folder. The code is visible and I can click
>> and open specific files.
>>
>> But when ever I mark a function name, and try to goto its declaration it
>> fails with a Error string in red saying this operation is not supported
>> for this file or something like that.
>> Ive notice this works if the function declaration is also within the
>> same file. But not if it is in a separate file.
>>
>> My understanding is that eclipse has to do make operation so that
>> completes indexing and discovers all the include paths. So I did a "make
>> install" operation through eclipse which finishes without any apparent
>> error. But it still does not allow me to go from a function invocation
>> to its declaration.
>>
>> Any suggestions as to what I might be doing wrong.
>>
>> Thanks,
>> Sarvi
>>
Re: Eclipse/CDT - Code Indexing/Browsing problem- Help [message #141160 is a reply to message #141007] Thu, 17 March 2005 08:17 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: hk1965.bluemail.ch

I have the same problem. Sourcecode navigation/indexer doesn't work.
PLease advice.
Regards
HK
Sarvi wrote:

> Hi Andrew,
> Thanks for the response. I this approach yesterday.
> I created a fresh worspace, started a C++ standard make project. And
> changed the default location to to where my source is "/vob/bts". I then
> went on to turn OFF Indexing. Then I made changes to Make section of the
> project properties use "make install" instead of "make all"(thats what we
> would have used to build the proejct from the unix command line, and "make
> uninstall" to cleanup).

> Anyway the build seemed to finish. There were a bunch of make failures.
> But I noticed that the majority of the components and object files were
> compiled.

> Now when I check the C/C++ Include Paths & Symbols tab in the project
> properties it has not discovered any include paths yet. I just went ahead
> enabled indexing anyway just to see what happens. It starts the indexer.
> When its done, I still cannot navigate around.

> Sarvi

> Andrew Niefer wrote:

>> Insted of linking in the folder, when you create the project try using the
>> location of your source for the project contents instead of using the
>> default location. Also in the wizard, hit next and go to the indexer tab
>> and disable the indexer to start. Then, build the project from within the
>> cdt (build all, ctrl+B, will call make, or you can do the make install).
>> Once the build is done, the cdt should have discovered your include paths
>> and built in symbols by parsing the build output (check this by going to
>> project properties, C/C++ Include Paths & Symbols tab). Then, go to your
>> project properties and turn the indexer back on. If an index doesn't start
>> running, close and reopen the project to trigger it.

>> If everything worked properly, you should now be able to use all the
>> navigation, search and content assist features.

>> -Andrew

>> "Sarvi" <sarvi@yahoo.com> wrote in message
>> news:d163nm$ohb$1@www.eclipse.org...
>>> We have an existing code base in unix that has its own Makefiles. they
>>> seem to build fine when I issue a command such as "make install" on the
>>> command line.
>>> I am trying to use Eclipse+CDT to browse the source code. So I created
>>> a Standard Make C++ project. Then added the unix folder containing the
>>> source code as a linked in folder. The code is visible and I can click
>>> and open specific files.
>>>
>>> But when ever I mark a function name, and try to goto its declaration it
>>> fails with a Error string in red saying this operation is not supported
>>> for this file or something like that.
>>> Ive notice this works if the function declaration is also within the
>>> same file. But not if it is in a separate file.
>>>
>>> My understanding is that eclipse has to do make operation so that
>>> completes indexing and discovers all the include paths. So I did a "make
>>> install" operation through eclipse which finishes without any apparent
>>> error. But it still does not allow me to go from a function invocation
>>> to its declaration.
>>>
>>> Any suggestions as to what I might be doing wrong.
>>>
>>> Thanks,
>>> Sarvi
>>>
Re: Eclipse/CDT - Code Indexing/Browsing problem- Help [message #141193 is a reply to message #141160] Thu, 17 March 2005 10:59 Go to previous message
Eclipse UserFriend
If the parser can not find the include files then it will have many problems
parsing your code.
If for some reason the automatic discovery did not work, you may need to
manually add the appropriate paths and symbols to the project's properties.

"HK" <hk1965@bluemail.ch> wrote in message
news:d1c01u$5nr$1@www.eclipse.org...
> I have the same problem. Sourcecode navigation/indexer doesn't work.
> PLease advice.
> Regards
> HK
> Sarvi wrote:
>
> > Hi Andrew,
> > Thanks for the response. I this approach yesterday.
> > I created a fresh worspace, started a C++ standard make project. And
> > changed the default location to to where my source is "/vob/bts". I then
> > went on to turn OFF Indexing. Then I made changes to Make section of the
> > project properties use "make install" instead of "make all"(thats what
we
> > would have used to build the proejct from the unix command line, and
"make
> > uninstall" to cleanup).
>
> > Anyway the build seemed to finish. There were a bunch of make failures.
> > But I noticed that the majority of the components and object files were
> > compiled.
>
> > Now when I check the C/C++ Include Paths & Symbols tab in the project
> > properties it has not discovered any include paths yet. I just went
ahead
> > enabled indexing anyway just to see what happens. It starts the indexer.
> > When its done, I still cannot navigate around.
>
> > Sarvi
>
> > Andrew Niefer wrote:
>
> >> Insted of linking in the folder, when you create the project try using
the
> >> location of your source for the project contents instead of using the
> >> default location. Also in the wizard, hit next and go to the indexer
tab
> >> and disable the indexer to start. Then, build the project from within
the
> >> cdt (build all, ctrl+B, will call make, or you can do the make
install).
> >> Once the build is done, the cdt should have discovered your include
paths
> >> and built in symbols by parsing the build output (check this by going
to
> >> project properties, C/C++ Include Paths & Symbols tab). Then, go to
your
> >> project properties and turn the indexer back on. If an index doesn't
start
> >> running, close and reopen the project to trigger it.
>
> >> If everything worked properly, you should now be able to use all the
> >> navigation, search and content assist features.
>
> >> -Andrew
>
> >> "Sarvi" <sarvi@yahoo.com> wrote in message
> >> news:d163nm$ohb$1@www.eclipse.org...
> >>> We have an existing code base in unix that has its own Makefiles. they
> >>> seem to build fine when I issue a command such as "make install" on
the
> >>> command line.
> >>> I am trying to use Eclipse+CDT to browse the source code. So I created
> >>> a Standard Make C++ project. Then added the unix folder containing the
> >>> source code as a linked in folder. The code is visible and I can click
> >>> and open specific files.
> >>>
> >>> But when ever I mark a function name, and try to goto its declaration
it
> >>> fails with a Error string in red saying this operation is not
supported
> >>> for this file or something like that.
> >>> Ive notice this works if the function declaration is also within the
> >>> same file. But not if it is in a separate file.
> >>>
> >>> My understanding is that eclipse has to do make operation so that
> >>> completes indexing and discovers all the include paths. So I did a
"make
> >>> install" operation through eclipse which finishes without any apparent
> >>> error. But it still does not allow me to go from a function invocation
> >>> to its declaration.
> >>>
> >>> Any suggestions as to what I might be doing wrong.
> >>>
> >>> Thanks,
> >>> Sarvi
> >>>
>
>
Previous Topic:Using relative paths
Next Topic:GDT w/ GDB/MI
Goto Forum:
  


Current Time: Wed Jul 02 23:24:28 EDT 2025

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

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

Back to the top