c++ - "non-virtual thunk to <method name>", referenced from: Vtable for <classname>in <objectfile.o> -
when compiling in debug mode xcode compilation has these linking errors:
"<method name>", referenced from: vtable <classname>in <objectfile.o> "non-virtual thunk <method name>", referenced from: vtable <classname>in <objectfile.o>
the strange thing is: occurs in 1 of build targets (both targets pretty same code), plus if these methods defined in header file instead of .cpp works fine both targets.
all of methods pure virtual. class these errors occur inherits multiple classes 1 of causes these errors.
anyone has ideia of causing error?
got hit same issue. happened when defined virtual member function (in .h header file) not implemented (in .cpp file).
in case, implementation inside #define prevented compiled. gcc should have more explicit message kind of common mistake such as
virtual function <function> defined not implemented in class <class>
Comments
Post a Comment