Eclipse [HELIOS] CDT: autocomplete, STL do not work with Eclipse..HELP!

I am a java user, but I wanted to play with CPP, so I installed the CDT plugin for eclipse [HELIOS].

I ran into some problems trying to set it up correctly, and I am wondering if anyone can help me. Here is a short code we can use:

#include "Base.h" // These lines give error => Unresolved inclusion: <vector> #include <vector> #include <string> using namespace std; void Base::ininitalizeVector() { for (int i = 0; i < 10; i++) { bIntVector.insert(i); //after pressing "." no method names etc appear } } 

1] AutoFill function does not work for STL. 2] I cannot get a list of supported methods, etc. After I hit the dot. 3] Includes does not work: #include 4] I think that using the std namespace is enough for STL to work, but not enough for IDE support? I even need to say #include

I did rightclick project => rebuild indexes, but that didn’t help. In my project => general => source location: the source folder is the folder with this CPP file and header file.

I probably misconfigured the settings, any help?

Infact, if there is another IDE that works out of the box quickly, I will be happy to try this. All I need is IDE support so that I can check things while reading on cpp.

thanks

+4
source share
1 answer

Unauthorized inclusion in CODAN, lack of autocompletion for the types associated with the headers in question mean that Eclipse cannot find the headers requested by you in the places where you said this in the project settings. On Linux, STL headers are usually found in /usr/include/c++/<GCC Version> . However, on Windows, STL headers are not supplied with it (nor any GNU tools), so you "fake" the Linux environment by installing Cygwin .

Windows development is always easier in Visual Studio - they were designed for each other in the end.

+1
source

All Articles