Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Indexing problems
Indexing problems [message #121493] Thu, 23 September 2004 12:27 Go to next message
Eclipse UserFriend
Hi,
I encounter some problems with navigation with C++ Project -
When I select a function and press F3 (Open declaration) I get an error
saying:
The operation is unavailable on the current selection" and
the navigation fails.
I tried to see what is the problem and I found myself a little confused
with the C++ indexser.
I hope you'll be able to help me...
I have these questions:

1. I get many Indexer Problems, even though in the Discovered Paths
container (in the C/C++ Include Paths & Symbols project property page) I
can see all the relevant includes were found !
Here are some of the errors:

C/C++ Indexer Problem: Attempt to use symbol failed : _prm in file:
/view/gmilman_myView_view/mvobs/INFRA/code/adt/inc/args.h

C/C++ Indexer Problem: Preprocessor Conditionals unbalanced : endif in
file: /view/gmilman_myView_view/mvobs/INFRA/code/adt/inc/baseid.h

C/C++ Indexer Problem: Attempt to use symbol failed : ostream in file:
/view/gmilman_myView_view/mvobs/INFRA/code/adt/inc/buffer.h

2. Why I got semantic or syntactic errors when the project was
successfully compiled?
3. I have some questions regarding the C++ Include Paths & Symbols project
property page:
a. I selected the Discovery paths->include sub folder, pressed on the 'add
Folder/File...' option and selected a folder. I saw the folder in the
Include paths and Preprocessor Symbols list, under the project name.
After pressing OK and reopening the Properties Dialog I saw that the
folder I added was vanished !
(The same behavior occurred when I didn't select anything in the Include
paths and Preprocessor Symbols list and selected the 'add Folder/File...'
option).Is it supposed to be like that or is it a bug?
What does the 'add Folder/File...' option suppose to do?
b. What does the 'Add Contributed...' option,suppose to do? It also
doesn't work for me ...
4.Does the C/C++ make project option have anything to do with the indexer
(John told me I need to change the Discovery options to enable
5. The 'Path Containers' in the C/C++ Project paths can have different
paths from the paths that are mentioned in the C/C++ Include paths &
Symbols option. Are these path relevant to the indexer? Why can they be
different?

Thabks a lot
Guy
Re: Indexing problems [message #121546 is a reply to message #121493] Fri, 24 September 2004 09:47 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: levay.all.hu

Hi,

I encountered the same problems and did not have the time to go and
solve it, so now I am back to emacs now.

My project is not managed, I have my own makefile which is not called
makefile and I am using the mingw compiler installed with dev-cpp

Akos


Guy wrote:
> Hi,
> I encounter some problems with navigation with C++ Project -
> When I select a function and press F3 (Open declaration) I get an error
> saying:
> The operation is unavailable on the current selection" and
> the navigation fails.
> I tried to see what is the problem and I found myself a little confused
> with the C++ indexser.
> I hope you'll be able to help me...
> I have these questions:
>
> 1. I get many Indexer Problems, even though in the Discovered Paths
> container (in the C/C++ Include Paths & Symbols project property page) I
> can see all the relevant includes were found !
> Here are some of the errors:
>
> C/C++ Indexer Problem: Attempt to use symbol failed : _prm in file:
> /view/gmilman_myView_view/mvobs/INFRA/code/adt/inc/args.h
>
> C/C++ Indexer Problem: Preprocessor Conditionals unbalanced : endif in
> file: /view/gmilman_myView_view/mvobs/INFRA/code/adt/inc/baseid.h
>
> C/C++ Indexer Problem: Attempt to use symbol failed : ostream in file:
> /view/gmilman_myView_view/mvobs/INFRA/code/adt/inc/buffer.h
>
> 2. Why I got semantic or syntactic errors when the project was
> successfully compiled?
> 3. I have some questions regarding the C++ Include Paths & Symbols project
> property page:
> a. I selected the Discovery paths->include sub folder, pressed on the 'add
> Folder/File...' option and selected a folder. I saw the folder in the
> Include paths and Preprocessor Symbols list, under the project name.
> After pressing OK and reopening the Properties Dialog I saw that the
> folder I added was vanished !
> (The same behavior occurred when I didn't select anything in the Include
> paths and Preprocessor Symbols list and selected the 'add Folder/File...'
> option).Is it supposed to be like that or is it a bug?
> What does the 'add Folder/File...' option suppose to do?
> b. What does the 'Add Contributed...' option,suppose to do? It also
> doesn't work for me ...
> 4.Does the C/C++ make project option have anything to do with the indexer
> (John told me I need to change the Discovery options to enable
> 5. The 'Path Containers' in the C/C++ Project paths can have different
> paths from the paths that are mentioned in the C/C++ Include paths &
> Symbols option. Are these path relevant to the indexer? Why can they be
> different?
>
> Thabks a lot
> Guy
>
>
Re: Indexing problems [message #121583 is a reply to message #121493] Fri, 24 September 2004 12:13 Go to previous messageGo to next message
Eclipse UserFriend
If your compiler accepts it and the CDT Parser has a problem with it, please
raise a defect w/a
code example @ bugs.eclipse.org.

Thanks
JC

"Guy" <guy.Milman@comverse.com> wrote in message
news:ciuti9$qcu$1@eclipse.org...
> Hi,
> I encounter some problems with navigation with C++ Project -
> When I select a function and press F3 (Open declaration) I get an error
> saying:
> The operation is unavailable on the current selection" and
> the navigation fails.
> I tried to see what is the problem and I found myself a little confused
> with the C++ indexser.
> I hope you'll be able to help me...
> I have these questions:
>
> 1. I get many Indexer Problems, even though in the Discovered Paths
> container (in the C/C++ Include Paths & Symbols project property page) I
> can see all the relevant includes were found !
> Here are some of the errors:
>
> C/C++ Indexer Problem: Attempt to use symbol failed : _prm in file:
> /view/gmilman_myView_view/mvobs/INFRA/code/adt/inc/args.h
>
> C/C++ Indexer Problem: Preprocessor Conditionals unbalanced : endif in
> file: /view/gmilman_myView_view/mvobs/INFRA/code/adt/inc/baseid.h
>
> C/C++ Indexer Problem: Attempt to use symbol failed : ostream in file:
> /view/gmilman_myView_view/mvobs/INFRA/code/adt/inc/buffer.h
>
> 2. Why I got semantic or syntactic errors when the project was
> successfully compiled?
> 3. I have some questions regarding the C++ Include Paths & Symbols project
> property page:
> a. I selected the Discovery paths->include sub folder, pressed on the 'add
> Folder/File...' option and selected a folder. I saw the folder in the
> Include paths and Preprocessor Symbols list, under the project name.
> After pressing OK and reopening the Properties Dialog I saw that the
> folder I added was vanished !
> (The same behavior occurred when I didn't select anything in the Include
> paths and Preprocessor Symbols list and selected the 'add Folder/File...'
> option).Is it supposed to be like that or is it a bug?
> What does the 'add Folder/File...' option suppose to do?
> b. What does the 'Add Contributed...' option,suppose to do? It also
> doesn't work for me ...
> 4.Does the C/C++ make project option have anything to do with the indexer
> (John told me I need to change the Discovery options to enable
> 5. The 'Path Containers' in the C/C++ Project paths can have different
> paths from the paths that are mentioned in the C/C++ Include paths &
> Symbols option. Are these path relevant to the indexer? Why can they be
> different?
>
> Thabks a lot
> Guy
>
>
Re: Indexing problems [message #121596 is a reply to message #121493] Fri, 24 September 2004 13:48 Go to previous messageGo to next message
Eclipse UserFriend
I noticed in a previous post that you're doing ssh to build your project.
If the include paths discovered by Scanner Discovery are not valid on your
system (i.e. make uses a directory not available on your local machine) then
you are unfortunately out of luck w/this feature.
We need the include files in order to properly parse your source code.

JC

"Guy" <guy.Milman@comverse.com> wrote in message
news:ciuti9$qcu$1@eclipse.org...
> Hi,
> I encounter some problems with navigation with C++ Project -
> When I select a function and press F3 (Open declaration) I get an error
> saying:
> The operation is unavailable on the current selection" and
> the navigation fails.
> I tried to see what is the problem and I found myself a little confused
> with the C++ indexser.
> I hope you'll be able to help me...
> I have these questions:
>
> 1. I get many Indexer Problems, even though in the Discovered Paths
> container (in the C/C++ Include Paths & Symbols project property page) I
> can see all the relevant includes were found !
> Here are some of the errors:
>
> C/C++ Indexer Problem: Attempt to use symbol failed : _prm in file:
> /view/gmilman_myView_view/mvobs/INFRA/code/adt/inc/args.h
>
> C/C++ Indexer Problem: Preprocessor Conditionals unbalanced : endif in
> file: /view/gmilman_myView_view/mvobs/INFRA/code/adt/inc/baseid.h
>
> C/C++ Indexer Problem: Attempt to use symbol failed : ostream in file:
> /view/gmilman_myView_view/mvobs/INFRA/code/adt/inc/buffer.h
>
> 2. Why I got semantic or syntactic errors when the project was
> successfully compiled?
> 3. I have some questions regarding the C++ Include Paths & Symbols project
> property page:
> a. I selected the Discovery paths->include sub folder, pressed on the 'add
> Folder/File...' option and selected a folder. I saw the folder in the
> Include paths and Preprocessor Symbols list, under the project name.
> After pressing OK and reopening the Properties Dialog I saw that the
> folder I added was vanished !
> (The same behavior occurred when I didn't select anything in the Include
> paths and Preprocessor Symbols list and selected the 'add Folder/File...'
> option).Is it supposed to be like that or is it a bug?
> What does the 'add Folder/File...' option suppose to do?
> b. What does the 'Add Contributed...' option,suppose to do? It also
> doesn't work for me ...
> 4.Does the C/C++ make project option have anything to do with the indexer
> (John told me I need to change the Discovery options to enable
> 5. The 'Path Containers' in the C/C++ Project paths can have different
> paths from the paths that are mentioned in the C/C++ Include paths &
> Symbols option. Are these path relevant to the indexer? Why can they be
> different?
>
> Thabks a lot
> Guy
>
>
Re: Indexing problems [message #121716 is a reply to message #121596] Mon, 27 September 2004 03:32 Go to previous message
Eclipse UserFriend
Hi John,
Thank you for your answer.
I tried in the past to build my project with remote compilation, but the
remote navigation failed. Now I have the severe problem that locale
navigation fails too, even though the include paths discovered by Scanner
Discovery are valid on my system !
What do you think I should do?

johnc wrote:

> I noticed in a previous post that you're doing ssh to build your project.
> If the include paths discovered by Scanner Discovery are not valid on your
> system (i.e. make uses a directory not available on your local machine) then
> you are unfortunately out of luck w/this feature.
> We need the include files in order to properly parse your source code.

> JC

> "Guy" <guy.Milman@comverse.com> wrote in message
> news:ciuti9$qcu$1@eclipse.org...
> > Hi,
> > I encounter some problems with navigation with C++ Project -
> > When I select a function and press F3 (Open declaration) I get an error
> > saying:
> > The operation is unavailable on the current selection" and
> > the navigation fails.
> > I tried to see what is the problem and I found myself a little confused
> > with the C++ indexser.
> > I hope you'll be able to help me...
> > I have these questions:
> >
> > 1. I get many Indexer Problems, even though in the Discovered Paths
> > container (in the C/C++ Include Paths & Symbols project property page) I
> > can see all the relevant includes were found !
> > Here are some of the errors:
> >
> > C/C++ Indexer Problem: Attempt to use symbol failed : _prm in file:
> > /view/gmilman_myView_view/mvobs/INFRA/code/adt/inc/args.h
> >
> > C/C++ Indexer Problem: Preprocessor Conditionals unbalanced : endif in
> > file: /view/gmilman_myView_view/mvobs/INFRA/code/adt/inc/baseid.h
> >
> > C/C++ Indexer Problem: Attempt to use symbol failed : ostream in file:
> > /view/gmilman_myView_view/mvobs/INFRA/code/adt/inc/buffer.h
> >
> > 2. Why I got semantic or syntactic errors when the project was
> > successfully compiled?
> > 3. I have some questions regarding the C++ Include Paths & Symbols project
> > property page:
> > a. I selected the Discovery paths->include sub folder, pressed on the 'add
> > Folder/File...' option and selected a folder. I saw the folder in the
> > Include paths and Preprocessor Symbols list, under the project name.
> > After pressing OK and reopening the Properties Dialog I saw that the
> > folder I added was vanished !
> > (The same behavior occurred when I didn't select anything in the Include
> > paths and Preprocessor Symbols list and selected the 'add Folder/File...'
> > option).Is it supposed to be like that or is it a bug?
> > What does the 'add Folder/File...' option suppose to do?
> > b. What does the 'Add Contributed...' option,suppose to do? It also
> > doesn't work for me ...
> > 4.Does the C/C++ make project option have anything to do with the indexer
> > (John told me I need to change the Discovery options to enable
> > 5. The 'Path Containers' in the C/C++ Project paths can have different
> > paths from the paths that are mentioned in the C/C++ Include paths &
> > Symbols option. Are these path relevant to the indexer? Why can they be
> > different?
> >
> > Thabks a lot
> > Guy
> >
> >
Previous Topic:Using templates in CDT/Linux/g++
Next Topic:how to cdt like ms vc?
Goto Forum:
  


Current Time: Fri Jul 25 21:14:45 EDT 2025

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

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

Back to the top