i managed to solve this thanks to comments here.... i ended up recreating my project. i used the import method to download a project from cvs, and told it to use the new project wizard to do so. when i got the new project dialog, i told it this was a c++ project, and the indexing now works fine.
i still wish i could index files without having to attach a specific project type to it, but at least i found an answer.
thanks for the help all.
please try the following (my project is set up differently, so i am not sure this will work for you).
go to properties -> c/c++ general -> paths and symbols -> source location.
do you see your source folder there?
i observe this behavior: when i add a source folder and then exclude it from build, it disappears from the above list. after that the folder is no longer indexed. re-adding it to "source location" solves the problem: the folder is now indexed; remains excluded from build (as intended); is visible among source locations.
i believe it is a bug -- excluding a source folder from build should not remove it from source locations list.
in coocox ide (eclipse + gcc) the problem is resolved by going from file menu edit > preferences > c/c++ / indexer > build configuration for indexer set to active build configuration and the rebuild the project (ctrl r).
if the project is already converted to c/c++ and still the index is not working you can right click on the project and index and rebuild. the project will start indexing right away.
i am using
eclipse ide for c/c++ linux developers
version: helios service release 2 build id: 20110218-0911
i followed the suggestions above and in addition i had to mark all referenced projects (with in the work space) using project properties->project references
the following has worked for me in eclipse neon: new project -> c/c++ -> makefile project with existing code -> next. then navigate to the code and finish the project creation. indexing starts automatically.
i have experienced problems with the indexer of eclipse luna when there was an unresolved friend declaration in the class declaration - it seems then that the indexer skipped indexing the rest of that class, and all references to it was shown as unresolved by the indexer.
solution: removed the unresolved friend declaration (in my case, it was legacy code that was no longer needed).
indexing of files and variables under different flags is always complicated when we have a huge project, lot of files and more importantly lot of different build options. i prefer playing around with the indexer option to help me browse the entire code. you can find it : project properties>c/c++ general/indexer.
you can choose "enable project specific settings"
then it's up to you to choose the options you want for your project. for a particular build we can choose "use active build configuration" so that only the files and macros are considered which are used by the build script. or index all source files in the entire project.
i am using eclipse neon 3, here's the solution that worked for me :
- go to file
- convert to c/c++ autotools project then select your project and finish.
it can take some time to finish indexing, it depends on your project size.
in the project explorer panel, right click the project you want to re-index, then select index, then select the action you want
exit eclipse. in workspace go to ".metadata/.plugins/org.eclipse.cdt.core" and delete everything in there.
i faced similar situation. i solved it in this way: right-click the project in project
i had exactly same issue as op but for some reason the menus in eclipse i was using (helios service release 2) were not "go to properties -> c/c++ general -> paths and symbols -> source location.".
the way i fixed the issue was :
- in c/c++ view, right-click on top project name;
- in the menu, select new->c++ project;
- in the window that appears, select convert to and then select c++ project;
- click ok to close the window.
eclipse will start indexing right away. depending on the size of source tree it may take a while but you will have the indexing working finally after that.
- How can I get Eclipse to index an entire C/C++ source tree that contains multiple "make projects"?
- How can I format an entire source tree in Eclipse 3.4 (Ganymede)?
- How can I get an Eclipse installation that includes source code of its plugins?
- How can I get Eclipse to index code inside #ifdef .... #endif
- How can I get eclipse to run currently open source file?
- How can I convince Eclipse CDT that a macro is defined for source code editing and code completion?
- How can I get Eclipse to store .class files in a folder outside the Project folder where I store the .java source files?
- How can I get a Java program in Eclipse to use multiple processing cores?
- How to make Eclipse recognise a Git source tree that was a Bazaar source tree
- In Eclipse 3.5 (and with the Aptana plugins), how do I get a view that I can use to show my project, including "dot" files?
- How can I get Eclipse (or any IDE) to index .td files?
- Eclipse & Grade how to generate jar so that debugger can access the source code?
- Blackberry with Eclipse - How can I get rid of multiple Debug Servers?
- How can I get an eclipse project to reference source jars from maven local repository in a shared project?
- How can I get Eclipse to show .* files?
- How do I configure the proxy settings so that Eclipse can download new plugins?
- How can I get Eclipse to scroll past the bottom of the document?
- How can I get word wrap to work in Eclipse PDT for PHP files?
- How can I get Eclipse 2018.09 to use the JUnit 4 test runner by default?
- How do I get Eclipse to show the entire javadoc for a class
- How can I get Eclipse to insert tabs instead of spaces for Java content assist?
- How can I use the java Eclipse Abstract Syntax Tree in a project outside Eclipse? (ie not an eclipse plugin)
- How can I get eclipse to wrap lines after a period instead of before
- How do I get Logcat for multiple devices running at the same time in Eclipse
- How to set up multiple source folders within a single Eclipse project?
- How to get Eclipse Console to hyperlink text to source code files?
- How can I look at the current environmental variables that eclipse IDE is using?
- How to get gdb working with Eclipse CDT under windows (fails to find source code)
- How can I get the complete Call Hierarchy of a Java source code?
- How to get back a file that was excluded from a build configuration in Eclipse CDT?
More Query from same tag
- How to use a dynamic lib in eclipse?
- Build Eclipse never ended
- How to use m2ecipse and maven in Idea IDE correctly?
- Can I program Java with Flex Builder?
- Eclipse suddenly stopped running code
- from C to assembly
- Counterclockwise eclipse error on 1st command
- importing dependencies into eclipse using gradle
- Eclipse shortcut for "Next error" (Ctrl-.) not working
- Why might a program null pointer in Eclipse when it works in another IDE?
- Caused by: java.lang.ClassNotFoundException: javax.servlet.http.HttpServlet
- Example of "Type parameter hides another type" warning in Eclipse
- Check for duplication of number in ArrayList - Java
- an internal error occurred during: uploading code to lambda
- User and Password login pop-up continuously prompt after given while i am trying to import project from github or committing to github in eclipse
- Eclipse plugin (reinstall ?)
- How to run a (dot)java file
- AssetManager can't find file in assets directory
- java + eclipse + apple snow: missing javax.servlet.*
- JSTL library error
- Eclipse Luna - Android app wizard hangs on at the final step
- How do you run Eclipse IDE for C/C++ from the command line (I already installed it)
- Java executable Jar File
- Missing jboss-modules.jar in jboss 7.2
- Java - How to check value of 'ThreadLocal' variables in Eclipse?
- Simple eclipse search problem
- Adding attribute to a custom controls in android
- How to connect to a server through eclipse plugin and perform operations
- Google Maps rev. 30 eclipse usage : google_play_services_version
- Java Generics of the form <T extends A<T>> and Eclipse Compiler