Undefined reference to vtable

前端 未结 16 2124
死守一世寂寞
死守一世寂寞 2020-11-21 20:30

When building my C++ program, I\'m getting the error message

undefined reference to \'vtable...

What is the cause of this probl

16条回答
  •  孤独总比滥情好
    2020-11-21 21:14

    I simply got this error because my .cpp file was not in the makefile.

    In general, if you forget to compile or link to the specific object file containing the definition, you will run into this error.

提交回复
热议问题