This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: undefined reference to vtable


On 16 July 2011 19:20, Kalle Olavi Niemitalo wrote:
> eric <cneric12lin0@gmail.com> writes:
>
>> actually that book even did not specially define Superhero::walk(),
>> that is I add by myself to escape my compile's error
>> (is that right? or book's is right?)
>
> I see you did not define Superhero::eat(), however. ?You must
> define all the virtual functions of class Superhero, even if the
> program never calls them. ?http://gcc.gnu.org/faq.html#vtables

http://gcc.gnu.org/ml/gcc-help/2011-07/msg00143.html


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]