← Back to team overview

yade-dev team mailing list archive

Re: R: Re: Error plugin

 

> Actually I was including in the header file the virtual destructor.. So why is 
> it giving me such error?
Read the warning
(file:///home/vaclav/yade/ydoc/_build/html/prog.html#run-time-type-identification-rtti) again:

at least one virtual method must be present in the implementation (.cpp) file.
                                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Otherwise it is not included in the object file (even though it is fully
defined in the .hpp file); if there are no virtual functions in the
object file, there will be no typeinfo and vtable for that class either.

HTH, v




References