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
Post a Comment