Undefined Reference, Add Include error? [message #158132] |
Wed, 16 November 2005 16:07 |
Scott Mising name 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.
|
|
|
Powered by
FUDForum. Page generated in 0.05224 seconds