#include indexer problem [message #104245] |
Wed, 02 June 2004 06:06 |
Eclipse User |
|
|
|
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 #104426 is a reply to message #104369] |
Wed, 02 June 2004 17:18 |
Eclipse User |
|
|
|
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 |
John Camelon 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 |
Eclipse User |
|
|
|
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?
> > > >
> > > >
> > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.02858 seconds