Eclipse CDT: Symbol ‘cout’ could not be resolved

Most likely you have some system-specific include directories missing in your settings which makes it impossible for indexer to correctly parse iostream, thus the errors. Selecting Index -> Search For Unresolved Includes in the context menu of the project will give you the list of unresolved includes which you can search in /usr/include and add … Read more

Clean Eclipse Index, it is out of sync with code

Right-click on your project, go under the Index submenu, and choose either “Rebuild,” “Update with modified files,” or “Freshen all files.” I don’t know the difference between those three options, but one of “Update with modified files” or “Freshen all files” usually fixes it for me. Also, I’m sure you’ve already done this, but make … Read more

Install Eclipse JDT on top of CDT

All versions of Eclipse have a standard base, then a specific set of plugins, depending on the version. All you have to do is go to the Help > Install New Software menu, select the Eclipse update site (e.g. “Galileo – http://download.eclipse.org/releases/galileo”), and under the Programming Languages section, select Eclipse Java Development Tools. If you … Read more

GCC C++ Linker errors: Undefined reference to ‘vtable for XXX’, Undefined reference to ‘ClassName::ClassName()’

This linker error usually (in my experience) means that you’ve overridden a virtual function in a child class with a declaration, but haven’t given a definition for the method. For example: class Base { virtual void f() = 0; } class Derived : public Base { void f(); } But you haven’t given the definition … Read more

How to enable C++11 in Eclipse Juno/Kepler/Luna CDT?

There’s two things you have to do, first you need to setup your compiler, then you need to setup CDT’s language processor. Since you didn’t mention which compiler you’re using, I’ll assume it’s GCC but the steps will be similar for other compilers. (Note that you need a compiler that supports C++11, of course.) Setting … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)