c++ - Virtual Classes in Eclipse -


i'm having problem eclipse's indexing. here's minimal working example.

i create header file, parent.h, in define following virtual class:

class parent { protected:     virtual ~parent() {} public:     virtual void overrideme() = 0; }; 

then, create header file, child.h:

#include "parent.h"  class child : public parent {  }; 

immediately, eclipse complains "symbol parent not resolved."

the problem magically goes away if create source file parent.cpp , in put #include "parent.h". more strangely, not reappear if delete source file.

there seems crazy going on eclipse's indexing? people similar problems have recommended doing "index -> rebuild". not work me.

any appreciated. in advance.


Comments

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

Does Firefox offer AppleScript support to get URL of windows? -

android - How to install packaged app on Firefox for mobile? -