Unresolved function calls [message #735456] |
Tue, 11 October 2011 17:14 |
Eclipse User |
|
|
|
I have the Indigo version of the Eclipse CDT installed on a linux system. I can compile my code just fine. It also runs just fine in debug using eclipse. However, I do see some odd errors in some of the source files. Mostly things like unresolved function calls and variables. Funny thing is if I clear all the intermediate files out of my build area, and try to reset some things in eclipse (things like the Discovery entries), and then rebuild from scratch, the errors go away. In other words, the GUI does not show little red X's next to any of the source folders. However, as soon as I drill down into some of those folders, and then open a particular source file, these errors come back. Since it appears to me the eclipse parser is not properly locating some of the include files containing these function calls and/or variables, I am assuming the problem has to do with the directory paths contained in the "Paths & Symbols" area of the project properties. Since the discovery options did not add the necessary include files containing these functions, I added them manually. This only seemed to help in a few cases, but not all. I do have a question however regarding the "Paths & Symbols" area. Are you suppose to enter the absolute path where the parser needs to look for the necessary include files, or only the part of the path up to where the include directive in the code takes over. Let me demonstrate to clarify.
Let's say you have an include file on your system in the following location.
/opt/xerces/latest/include/xercesc/dom
Let's also say you have an include directive in your code as follows.
#include <xercesc/dom/DOM.hpp>
What would be the proper entry in the "Paths & Symbols" area.
/opt/xerces/latest/include
...or...
/opt/xerces/latest/include/xercesc/dom
I've done both, but I still get the same errors. If anyone has any ideas as to what the problem may be, any help would be greatly appreciated. Thank you.
Sorry, this message was posted twice as I couldn't find it after I posted it the first time and assumed it didn't post.
[Updated on: Tue, 11 October 2011 17:29] by Moderator
|
|
|
Powered by
FUDForum. Page generated in 0.03703 seconds