Mittwoch, 2. April 2008

undefined reference to vtable!?

One of the most obscure error message the gcc produces is the output
undefined reference to vtable
The reason is usually simple:

gcc has to put the vtable into an object file. That is the object file, where the definition of the first non-inline member function is. If it is missing, you get this rather unhelpful linker error.
So?! You now have to check the member functions!

Keine Kommentare: