Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » #include indexer problem
#include indexer problem [message #104245] Wed, 02 June 2004 06:06 Go to next message
Eclipse UserFriend
Originally posted by: SpamBeGoneYug3sh.yahoo.com

I enabled the indexer problem reporting on my project, however, It flags
certain things as errors which shouldn't be.

Example...

My project dir is:

foo

I have an include file:

foo/general/h/example.h

I have a C file that includes the above file relative to the project root:

#include "./general/h/example.h"

My makefile specifies foo as a root include directory. Building the project
work fines (using the makefile I defined), however the indexer complains
about the include. If I use a path relative to the C file e.g.

#include "../../general/h/example.h"

then it works fine.

I tried tweaking the project include directories, but no go.

Any ideas on getting the indexer to work with this?
Re: #include indexer problem [message #104369 is a reply to message #104245] Wed, 02 June 2004 14:22 Go to previous messageGo to next message
John Camelon is currently offline John CamelonFriend
Messages: 242
Registered: July 2009
Senior Member
Are you using the scanner discovery feature?
If so, it is a defect on that.
Otherwise, you haven't inputted the correct paths necessary.

JohnC

"Yug3sh" <SpamBeGoneYug3sh@yahoo.com> wrote in message
news:c9jq74$qol$1@eclipse.org...
> I enabled the indexer problem reporting on my project, however, It flags
> certain things as errors which shouldn't be.
>
> Example...
>
> My project dir is:
>
> foo
>
> I have an include file:
>
> foo/general/h/example.h
>
> I have a C file that includes the above file relative to the project root:
>
> #include "./general/h/example.h"
>
> My makefile specifies foo as a root include directory. Building the
project
> work fines (using the makefile I defined), however the indexer complains
> about the include. If I use a path relative to the C file e.g.
>
> #include "../../general/h/example.h"
>
> then it works fine.
>
> I tried tweaking the project include directories, but no go.
>
> Any ideas on getting the indexer to work with this?
>
>
>
>
>
Re: #include indexer problem [message #104426 is a reply to message #104369] Wed, 02 June 2004 17:18 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: SpamBeGoneYug3sh.yahoo.com

Yes, I did have scanner discovery on. I tried disabling it and still no go.

I don't think its a path input problem.... theres only one path, i.e. the
root project folder. since includes are relative to the root, I shouldn't
have to include any other paths.



"johnc" <jcamelon@ca.ibm.com> wrote in message
news:c9kn4r$1ke$1@eclipse.org...
> Are you using the scanner discovery feature?
> If so, it is a defect on that.
> Otherwise, you haven't inputted the correct paths necessary.
>
> JohnC
>
> "Yug3sh" <SpamBeGoneYug3sh@yahoo.com> wrote in message
> news:c9jq74$qol$1@eclipse.org...
> > I enabled the indexer problem reporting on my project, however, It flags
> > certain things as errors which shouldn't be.
> >
> > Example...
> >
> > My project dir is:
> >
> > foo
> >
> > I have an include file:
> >
> > foo/general/h/example.h
> >
> > I have a C file that includes the above file relative to the project
root:
> >
> > #include "./general/h/example.h"
> >
> > My makefile specifies foo as a root include directory. Building the
> project
> > work fines (using the makefile I defined), however the indexer complains
> > about the include. If I use a path relative to the C file e.g.
> >
> > #include "../../general/h/example.h"
> >
> > then it works fine.
> >
> > I tried tweaking the project include directories, but no go.
> >
> > Any ideas on getting the indexer to work with this?
> >
> >
> >
> >
> >
>
>
Re: #include indexer problem [message #104547 is a reply to message #104426] Thu, 03 June 2004 14:09 Go to previous messageGo to next message
John Camelon is currently offline John CamelonFriend
Messages: 242
Registered: July 2009
Senior Member
> > > #include "./general/h/example.h"
Is the compilation unit that is including this in the directory 'foo'? If
so, please make a small sample project demonstrating the problem and raise a
bug on CDT-Parser @ bugs.eclipse.org.

"Yug3sh" <SpamBeGoneYug3sh@yahoo.com> wrote in message
news:c9l1ip$i3f$1@eclipse.org...
>
> Yes, I did have scanner discovery on. I tried disabling it and still no
go.
>
> I don't think its a path input problem.... theres only one path, i.e. the
> root project folder. since includes are relative to the root, I shouldn't
> have to include any other paths.
>
>
>
> "johnc" <jcamelon@ca.ibm.com> wrote in message
> news:c9kn4r$1ke$1@eclipse.org...
> > Are you using the scanner discovery feature?
> > If so, it is a defect on that.
> > Otherwise, you haven't inputted the correct paths necessary.
> >
> > JohnC
> >
> > "Yug3sh" <SpamBeGoneYug3sh@yahoo.com> wrote in message
> > news:c9jq74$qol$1@eclipse.org...
> > > I enabled the indexer problem reporting on my project, however, It
flags
> > > certain things as errors which shouldn't be.
> > >
> > > Example...
> > >
> > > My project dir is:
> > >
> > > foo
> > >
> > > I have an include file:
> > >
> > > foo/general/h/example.h
> > >
> > > I have a C file that includes the above file relative to the project
> root:
> > >
> > > #include "./general/h/example.h"
> > >
> > > My makefile specifies foo as a root include directory. Building the
> > project
> > > work fines (using the makefile I defined), however the indexer
complains
> > > about the include. If I use a path relative to the C file e.g.
> > >
> > > #include "../../general/h/example.h"
> > >
> > > then it works fine.
> > >
> > > I tried tweaking the project include directories, but no go.
> > >
> > > Any ideas on getting the indexer to work with this?
> > >
> > >
> > >
> > >
> > >
> >
> >
>
>
Re: #include indexer problem [message #104567 is a reply to message #104547] Thu, 03 June 2004 17:13 Go to previous message
Eclipse UserFriend
Originally posted by: SpamBeGoneYug3sh.yahoo.com

Yes it is in directory foo.

I'll make a sample and file a bug.

Thanks.


"johnc" <jcamelon@ca.ibm.com> wrote in message
news:c9napm$c45$1@eclipse.org...
> > > > #include "./general/h/example.h"
> Is the compilation unit that is including this in the directory 'foo'? If
> so, please make a small sample project demonstrating the problem and raise
a
> bug on CDT-Parser @ bugs.eclipse.org.
>
> "Yug3sh" <SpamBeGoneYug3sh@yahoo.com> wrote in message
> news:c9l1ip$i3f$1@eclipse.org...
> >
> > Yes, I did have scanner discovery on. I tried disabling it and still no
> go.
> >
> > I don't think its a path input problem.... theres only one path, i.e.
the
> > root project folder. since includes are relative to the root, I
shouldn't
> > have to include any other paths.
> >
> >
> >
> > "johnc" <jcamelon@ca.ibm.com> wrote in message
> > news:c9kn4r$1ke$1@eclipse.org...
> > > Are you using the scanner discovery feature?
> > > If so, it is a defect on that.
> > > Otherwise, you haven't inputted the correct paths necessary.
> > >
> > > JohnC
> > >
> > > "Yug3sh" <SpamBeGoneYug3sh@yahoo.com> wrote in message
> > > news:c9jq74$qol$1@eclipse.org...
> > > > I enabled the indexer problem reporting on my project, however, It
> flags
> > > > certain things as errors which shouldn't be.
> > > >
> > > > Example...
> > > >
> > > > My project dir is:
> > > >
> > > > foo
> > > >
> > > > I have an include file:
> > > >
> > > > foo/general/h/example.h
> > > >
> > > > I have a C file that includes the above file relative to the project
> > root:
> > > >
> > > > #include "./general/h/example.h"
> > > >
> > > > My makefile specifies foo as a root include directory. Building the
> > > project
> > > > work fines (using the makefile I defined), however the indexer
> complains
> > > > about the include. If I use a path relative to the C file e.g.
> > > >
> > > > #include "../../general/h/example.h"
> > > >
> > > > then it works fine.
> > > >
> > > > I tried tweaking the project include directories, but no go.
> > > >
> > > > Any ideas on getting the indexer to work with this?
> > > >
> > > >
> > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>
Previous Topic:GDB Server not available in CDT2.0M9
Next Topic:code completion very slow
Goto Forum:
  


Current Time: Sun Dec 22 11:07:43 GMT 2024

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

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

Back to the top