How to view vtable when linking fails?

I am using CLion 2021.1.2, g++ 9.3.0.

I keep getting this linker error:

undefined reference to `vtable for my_namespace::MyClass'

I've already checked that all virtual functions in parent class are defined in child class, and they are.

It is a mystery to me what else could cause this problem.

Is there a way to get CLion to display the virtual table?





Please sign in to leave a comment.