Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Unresolved inclusion
Unresolved inclusion [message #217652] Mon, 23 June 2008 11:51 Go to next message
No real name is currently offline No real nameFriend
Messages: 1
Registered: July 2009
Junior Member
Hey

I just recently upgraded to Eclipse Ganymede RC4 with CDT 5 (release
from June 17th). I am having some difficulties with "Unresolved
Inclusion" warnings (from the Indexer I assume?).

My code is mostly linux kernel stuff, and so I let CDT index the entire
Linux kernel source. Whenever the code tries to include stuff like
#include <asm/arch/something.h>, it seems to fail.

Obviously, CDT cannot know where to find these dirs, because they are
created as symbolic links when you run the kernel Makefile. However, it
still will not work after I've added the kernel include-dir in Project
Properties -> C/C++ General -> Paths and Symbols -> Includes. I did a
full re-index after adding the new dirs, just to be sure.

I get these kinds of errors every now and then -- the Makefile contains
-I paths that CDT wont pickup, and hence it cannot really know where to
look. What troubles me is that it wont find them, even after I've
manually added the paths to the Includes list.

Any suggestions? How do people generally handle these problems, i.e.
when importing large projects which heavily rely on a lot of symbols and
include paths. Is manually adding these the best approach?

Best regards, Magnus.
Re: Unresolved inclusion [message #218193 is a reply to message #217652] Mon, 30 June 2008 11:46 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: olav.email.com

Hi Magnus,

Magnus Olsson wrote:
> I just recently upgraded to Eclipse Ganymede RC4 with CDT 5 (release
> from June 17th). I am having some difficulties with "Unresolved
> Inclusion" warnings (from the Indexer I assume?).
>
> My code is mostly linux kernel stuff, and so I let CDT index the entire
> Linux kernel source. Whenever the code tries to include stuff like
> #include <asm/arch/something.h>, it seems to fail.
>
> Obviously, CDT cannot know where to find these dirs, because they are
> created as symbolic links when you run the kernel Makefile. However, it
> still will not work after I've added the kernel include-dir in Project
> Properties -> C/C++ General -> Paths and Symbols -> Includes. I did a
> full re-index after adding the new dirs, just to be sure.

This happens if you use Eclipse/CDT on a windows system with cygwin or mingw.
When CDT follows the include paths there in no path "asm" in the include
directory - just an "asm.lnk" which causes the problem.

> [...]

> Any suggestions? How do people generally handle these problems, i.e.
> when importing large projects which heavily rely on a lot of symbols and
> include paths. Is manually adding these the best approach?

I don't know if theres a better solution but that's the way I do it too.

Regards Olav
Re: Unresolved inclusion [message #218209 is a reply to message #218193] Mon, 30 June 2008 12:29 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jamesblackburn+eclipse.mac.com

olav wrote:
> Magnus Olsson wrote:
>> Any suggestions? How do people generally handle these problems, i.e.
>> when importing large projects which heavily rely on a lot of symbols
>> and include paths. Is manually adding these the best approach?
>
> I don't know if theres a better solution but that's the way I do it too.

This likely won't work for your kernel build, but for general Linux
apps, you can load the defines and macros in using dwarf (having built
the binary with -g3). There's an example plugin that provides this
functionality here: https://bugs.eclipse.org/bugs/show_bug.cgi?id=236872

Cheers,

James
Re: Unresolved inclusion [message #218272 is a reply to message #217652] Mon, 30 June 2008 18:26 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: srinivasan.kaushik.gmail.com

hi.

I am having the same problem. After I created a project (pretty big one),
and performing a full complete indexing, I get unresolved inclusion
messages. All these headers are present on the source....

Should I perform any extra step to get these includes visible ?
-Kaushik
Re: Unresolved inclusion [message #218872 is a reply to message #217652] Tue, 08 July 2008 11:28 Go to previous message
Eclipse UserFriend
Originally posted by: andy.butcher.trolex.com

Magnus Olsson wrote:

> Hey

> I just recently upgraded to Eclipse Ganymede RC4 with CDT 5 (release
> from June 17th). I am having some difficulties with "Unresolved
> Inclusion" warnings (from the Indexer I assume?).

You've probably fixed it by now, but this may help others.

I had the same problem the first time I built my project after changing
from Callisto to Ganymede. I changed from the Fast Indexer to the Full
Indexer and did a full index, which resolved the problem (I also checked
Index All Files, but I don't know if that was essential). I could then
change back to the Fast Indexer and everything worked.

Hope this helps,

Andy
Previous Topic:Code Style - vertical alignment of =
Next Topic:documentation???
Goto Forum:
  


Current Time: Tue Apr 16 04:39:10 GMT 2024

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

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

Back to the top