Note that there are some explanatory texts on larger screens.

plurals
  1. POEclipse CDT can resolve macros and functions, but not structures or enums (Code browsing only)
    primarykey
    data
    text
    <p>I'm working on a large C project (multiple makefiles, modified third party code, etc.) and I would like to use Eclipse as a graphical front-end for GDB and for browsing/editing the code. </p> <p>Right now I have a problem where Eclipse can resolve the macros and functions in the code, but not data structures or enums. Please note I am only concerned with browsing/editing the code. I will compile the project outside of Eclipse. I should also mention that Eclipse has no trouble resolving anything from a standard C library. I see that is a common question, but that is not a problem here.</p> <p>So far I've done the following:</p> <ul> <li>The entire code base is loaded into Eclipse.</li> <li>I can launch the final application from Eclipse and interact with it in the Console.</li> <li>The Indexer is enabled and it's set to index source files not included in the build, unused headers, and to not skip anything. I've run the Indexer a few times. I've also tried closing/reopening the project and restarting Eclipse.</li> <li>I added the directory containing the header files for the project to Properties->Paths and Symbols->Includes. I see this directory under "Includes" in the Project Explorer".</li> </ul> <p>If I'm browsing a source file, I can right click and select "Open Declaration" to see macro definitions and function definitions, even if those definitions are in other files. This is not working for data structures or enums. Eclipse reports Type "StructureX" could not be resolved?</p> <p>What do I need to do so Eclipse can resolve data structures?</p> <p><strong>Update</strong></p> <p>I just looked at the parser.log file. I see "Attempt to use symbol failed:" for the structures and enum members Eclipse can't resolve, but I don't see the reason why.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload