PDA

View Full Version : Qt 4 + eclipse, Windows, eclipse indexing problem with standard libs (Solution)



claudis
4th February 2011, 09:02
Hi there,

I develop an integrated Qt / OpenCV application with eclipse / Qt integration. This forum was very helpful, but I was stuck with one problem. I finally solved it and thought I should share that knowledge...

The Qt integration was working perfectly out of the box, but when I tried to include a standard header like "#include <vector>" eclipse always said "unresolved include". This was very annoying because code completion wasn't working properly then.

Solution:
Add MinGW standard-include path to project's settings:

Project / Properties / C/C++ Include Paths and Symbols
Add External Include Path
C:\MinGW\lib\gcc\mingw32\4.5.0\include\c++

Hint: "C:\MinGW\include" is not the path you want to include...

Now code completion for vector works :)