Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Include Paths Missing
Include Paths Missing [message #559671] Fri, 17 September 2010 14:39 Go to next message
Colin  is currently offline Colin
Messages: 14
Registered: September 2010
Junior Member
Hi, I am having trouble compiling an application which was previously working. The problem is with the include paths not being applied to the build. I see the correct paths listed in the "C/C++ Build Settings->eCos PowerPC GNU C++ Compiler->Directories" window but I don't see these paths during the compile in the build console. So the compile fails due to an unresolved include file. Unfortunately I am not sure what has changed to cause this problem, I have only made changes unrelated to the build configuration. Any thoughts? Thanks!
Re: Include Paths Missing [message #559673 is a reply to message #559671] Fri, 17 September 2010 14:41 Go to previous messageGo to next message
Colin  is currently offline Colin
Messages: 14
Registered: September 2010
Junior Member
Version info:
Eclipse C/C++ Development Tools
Version: 6.0.2.201002161416
Build id: 201002161416
Re: Include Paths Missing [message #559765 is a reply to message #559671] Sat, 18 September 2010 00:38 Go to previous messageGo to next message
No real name is currently offline No real name
Messages: 3
Registered: September 2010
Junior Member
I too am having this problem with Helio.

I'm very new to C and am working on a pretty big research project.

I am getting these warnings "Unresolved inclusion" for pretty much every header file outside of the project.

for example, i get this warning on #include <mpi.h> and #include<sys/queue.h>

I'm sure there's a way to have Eclipse CDT point to external libraries. I am able to do it very easily with the Java perspective, but I'm VERY new to C and am not familiar with the lingo.

Thanks for your help.
Re: Include Paths Missing [message #559767 is a reply to message #559671] Sat, 18 September 2010 00:50 Go to previous messageGo to next message
No real name is currently offline No real name
Messages: 3
Registered: September 2010
Junior Member
Here are some steps that I've taken:

Right Click the Project --> Properties --> C/C++ General --> Paths and Symbols

From there I selected Library Paths and added /usr/include

Looking at this /usr/include, I can see it has mpi.h and has a sys folder
the sys folder does indeed contain the queue.h


I'm still not sure why this is working.
Re: Include Paths Missing [message #559768 is a reply to message #559671] Sat, 18 September 2010 00:54 Go to previous messageGo to next message
No real name is currently offline No real name
Messages: 3
Registered: September 2010
Junior Member
Ok, I got several of them fixed.

Instead of -->Library Paths, just leave it on the Includes tab
Select C (i had it defaulted Assembly which is why it missed it)
then select where your headers are, i.e., /usr/include/

Re: Include Paths Missing [message #646605 is a reply to message #559765] Wed, 29 December 2010 06:25 Go to previous message
maha  is currently offline maha
Messages: 2
Registered: December 2010
Junior Member
Hi there,

Since you know how to solve this issue with Java, can you tell me how?

I'm desperate Sad basically this is the error in Ecplise:

import MPI; << import MPI can not be resolved

How can I add the MPI package ? and where can I download it ?

Thanks in advance,

[Updated on: Wed, 29 December 2010 06:25]

Report message to a moderator

Previous Topic:CDT/Java EE/FLEX together
Next Topic:Complicated?
Goto Forum:
  


Current Time: Sun Sep 21 12:08:33 GMT 2014

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

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