Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Undefined Reference, Add Include error?
Undefined Reference, Add Include error? [message #158132] Wed, 16 November 2005 16:07
Scott Mising name is currently offline Scott Mising nameFriend
Messages: 8
Registered: July 2009
Junior Member
I am trying to build a project that uses libraries and header files that
are external to it (outside of the current project and workspace).

I get an error saying that there is an undefined reference to a function
that is declared in a header file that is included in the source file.
When I right click on the error, and tell eclipse to Add Include, it
generates an invalid include path...

example:

this is somewhat what my include looks like

#include <base/sub/headerfile.h>

when I right click include I get this

#include <headerfile.h>


My include path setup in CDT has an entry for /home/projects, and base
would be off that path. So it would look like
/home/projects/base/sub/headerfile.h

Also, if I right click on the error, and "Open Declaration", I get a page
stating, java.io.FileNotFoundException "/base/sub/headerfile.h" (no such
file or directory)


Now, the strange thing is, all the other files like
<base/sub2/headerfile.h> include fine.


Any help or direction would be greatly appreciated. I am new to CDT,
moving from KDevelop/Visual C. Thank you all in advance.
Previous Topic:c/c++ indexer problem: Preprocessor inclusion not found:iostream
Next Topic:modal dialogs block help window
Goto Forum:
  


Current Time: Wed Jan 15 10:17:20 GMT 2025

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

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

Back to the top