qt - C++ - Undefined reference to `vtable -
i wondering why getting error: undefined reference `vtable baserenderer'
i tried searching around cannot seem figure out. i've tried getting rid of virtual function, removing constructor, etc.
my baserenderer.h
class baserenderer : public renderer { q_object public: baserenderer(); baserenderer(qwidget *parent); void paintgl(); virtual ~baserenderer(); public slots: void loaddialog(); signals: protected: mesh loadmesh(string filename); private: objparser objparser; mesh baseterrain; };
my baserenderer.cpp
baserenderer::baserenderer() <------ error leads me here { } baserenderer::baserenderer(qwidget *parent) : renderer(parent) { } baserenderer::~baserenderer() { //dtor }
how go getting rid of issue? hear may compiler...? :)
since q_object in parent class, renderer, don't have include baserenderer. rid of q_object , should work :)
Comments
Post a Comment