Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Code completion + included files. [RESOLVED MYSELF]
Code completion + included files. [RESOLVED MYSELF] [message #770188] Fri, 23 December 2011 10:20
Eclipse UserFriend
Hello!

I'm new to Eclipse and I'm coming from Netbeans and Visual Studio. In the past few hours I was able to solve many of my problems except code completion. I tried google many times but now it only shows up already visited links.

Here is the problem as I saw and tested it step by step:
1) Created a MinGW project and a Main.cpp.
2) Compiles and runs.
3) Typed in #include <>. Pressed CTRL+Space. Get a list of include files (including the other ones I put there, like the subdir of SFML includes). I choose iostream.
4) Typed in std::, pressed CTRL+Space. Nothing. Pressed it multiple times. Still nothing.
4) Tried the same thing with stdio.h and printf. No completion.
5) Created a .hpp file right next to my Main.cpp. Included it (the include completion showed my file too). Tried code completion on the content of my header. Nothing.
6) Tried code completion inside my .hpp file. Absolutely nothing.

Conclusion:
- Code completion only works in my only Main.cpp but shows what is defined right there.
- While eclipse finds all the included files (CTRL+Click opens them in the editor) the code completion does not care about them.
- I found this Index->Rebuild in the project context menu. Changes nothing.

Question:
What I need to do to make code completion work?

Additional info:
Windows 7 x64.
Eclipse IDE for C/C++ Developers (x64), Version: Indigo Service Release 1, Build id: 20110916-0149


RESOLVED:
Closed project and reopened it. That made the indexer kick in and do it's job.

[Updated on: Fri, 23 December 2011 10:57] by Moderator

Previous Topic:builder discovery paths and symbols
Next Topic:Eclipse breakpoint freezes x windows
Goto Forum:
  


Current Time: Wed Jul 16 09:55:36 EDT 2025

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

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

Back to the top