vtable

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
nino

vtable

Post by nino »

I just have restrucure my project and when i compile i have

[Linker error] undefined reference to `vtable for MyCL'

What could be the cause of the error?

thanks for help
zola -

Post by zola - »

never seen this.

If I make a guess I'd say You have included some library which is compiled with an old definition of class MyCL and when You try to link this You have linked the old library but are using the new includes or vs. ?

Just recompile everything and all should be ok. Make sure Your libraries are updated/ referenced correctly in Your compiler environment
Guest

Post by Guest »

I don't know why your compiler gives that error, but if I recall correctly,
a vtable is a jump table for calling the virtual functions in related classes,
e.g. calling the class-specific PostRender functions in the different scenenodes without the need for an explicit cast.

In this case it appears to be related to either a file or a class called MyCL, but that's as far as I can read your error message.
hub
Posts: 10
Joined: Thu Sep 02, 2004 5:39 pm

Post by hub »

Additionally to what's already been said, I'd suggest to check weather all pure virtual functions have been overridden. On the other hand, the compiler message is murky indeed...
Guest

Post by Guest »

Normally this sort of error message is reported on Windows when a class is not properly exported from a DLL. Declaring a class in which each method is pure virtual will work fine without the need to export, but if any of the methods are implemented (other than as inlines) then you will need to export the class (or at least the implemented metthod(s)).
[BROKEN]
Posts: 12
Joined: Thu Mar 03, 2005 11:56 am

Post by [BROKEN] »

took me a while to figure this out, but for sum reason, by removing the destructor (~whetever();) in the class in which you are calling the ieventreceiver, the error goes :twisted:
Post Reply