This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: vtable


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]