Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why do I get the linker error “undefined reference to `MyFrame virtual table\”?

0
Posted

Why do I get the linker error “undefined reference to `MyFrame virtual table\”?

0

Probably you do DECLARE_EVENT_TABLE() for MyFrame, but you don’t create an event table. This can actually happen in any case where virtual methods are declared but not defined. This can sometimes happen in roundabout ways, e.g., if you are inheriting from a class with a virtual destructor, but you haven’t defined a virtual destructor for your class. You can find more information about this in the GCC FAQ. One last possible cause is having a #pragma interface without a matching #pragma implementation.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123