Using the Eclipse IDE for C / C ++ Linux developers (version: Indigo Release) with g ++ 4.1.2 (on Scientific Linux CERN 5 = RHEL 5), I am currently working on a project in which I use the Qt4 GUI, and also the structure of Apache log4cxx and some standard C ++ classes. I installed the Nokia plugin "Qt Eclipse Integration for C ++", which automatically configured Qt toolchain support (qmake, etc.).
So far I have run everything. My program compiles well. With the exception of some warnings (which are reasonable), I observe a successful build process in the Eclipse console. Unfortunately, at the same time, I get about 150 error messages in the "Problems" window.
Some examples:
For string
using namespace log4cxx;
I get
Symbol log4cxx could not be resolved
and for
std::vector<View*>& Model::GetRegisteredViews() { ... }
I get
Symbol vector could not be resolved
and
Member declaration not found (-> of GetRegisteredViews() although the decl. is available, code compiles!)
All error messages are also marked with annotation symbols in the editor window, which is very annoying.
On the stackoverflow forums, I found out that this could be due to the fact that I had two versions of gcc, namely 4.1.2 and 4.4 . I have already uninstalled 4.4 (using the package management system RHEL, yum) - without success.
This may also be related to the index, but to be honest, I don’t know where to start fixing this problem.
It seems to me that Eclipse skips some entries about inclusion or the path to the library, but both of them are mentioned in the Qt pro file, as well as in the settings of the Eclipse project ...
Your help will be greatly appreciated, thanks for your comments!