Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Unresolved References(Eclipse is unable to resolve include files)
Unresolved References [message #1001999] Thu, 17 January 2013 17:28 Go to next message
Geoff Hartnell is currently offline Geoff Hartnell
Messages: 2
Registered: January 2013
Junior Member
I have Eclipse Juno Service Release 1 (build 20120920_800)
This is installed on VirtualBox running Linux on a host PC running Windows 7 enterprise
I invoke Eclipse by connecting to the Linux VM through MobaXterm so that Eclipse can run on the host Windows PC

The Java version is fine, but the C++ version gives unresolved inclusions
Probably as a result of the unresolved inclusions, there are a large number of errors
However, I can build the project with no errors

I've searched this forum (and the web) extensively, but I am still unable to resolve the problem

I've attached 2 image files (hopefully they will be included in line):

The image file UnresInclusions.png shows the following:
class preproc.cpp with a number of unresolved inclusions and a large number of errors
- in particular include file <ptl/autoptr.hpp> is unresolved
- BUT in the left hand window, it can be seen as on the include path

index.php/fa/13004/0/


The image file BuildProcess.png shows the successful build

index.php/fa/13005/0/


I've done various things to try and resolve including:
re-index
restart Eclipse
restart VirtualBox
- nothing has resolved the problem

Thanks for reading and any help much appreciated
Re: Unresolved References [message #1003526 is a reply to message #1001999] Mon, 21 January 2013 12:44 Go to previous messageGo to next message
Geoff Hartnell is currently offline Geoff Hartnell
Messages: 2
Registered: January 2013
Junior Member
I rebuilt absolutely everything and the problem has 'gone away'
Re: Unresolved References [message #1003908 is a reply to message #1003526] Tue, 22 January 2013 08:07 Go to previous message
Axel Mueller is currently offline Axel Mueller
Messages: 1964
Registered: July 2009
Senior Member
Geoff Hartnell wrote on Mon, 21 January 2013 13:44
I rebuilt absolutely everything and the problem has 'gone away'

Eclipse scans the output of your build command and looks for include paths and adds them then automatically (I guess you are using an external Makefile for the build process).
To clarify the whole process
- Eclipse indexes all files in your project
- Eclipse will then use gcc the get the include path for the system headers
- in Project Properties_>C/C++ General->Paths and Symbols you can add additional include paths (e.g. for external libraries)
- Eclipse will scan the actual output of your build process to get include paths (and symbols)


Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google
Previous Topic:Deleted text re-inserted
Next Topic:Resource Custom Build Step corrupts Project
Goto Forum:
  


Current Time: Thu Oct 30 15:19:25 GMT 2014

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

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