This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: vtable
- From: bjorn rohde jensen <bjensen at fastmail dot fm>
- To: candeias tiago <great_gmi at yahoo dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Thu, 05 Dec 2002 21:36:29 +0100
- Subject: Re: vtable
- References: <20021205192223.95899.qmail@web13307.mail.yahoo.com>
- Reply-to: bjensen at fastmail dot fm
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.