vtable

bjorn rohde jensen bjensen@fastmail.fm
Thu Dec 5 12:36:00 GMT 2002


Hi there,

  The vtable has to go somewhere, and compilers tend to
use some sort of heuristics to determine where. I think,
g++ places it in the object file with the definition of
the first virtual function. You are simply forgetting to
link with the object file, where g++ decided to place the
vtable.
  I would expect, you have either forgotten an object file
during linking or forgotten to declare the magic virtual
method as pure virtual aka =0.

Yours sincerely,

Bjorn.



More information about the Gcc-help mailing list