This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: C++ problem
On Nov 23, 1998, teunis <teunis@computersupportcentre.com> wrote:
> /root/apps/projects/hive-3D/src/geom/EllipseIterator.hpp:25: undefined
> reference to `EllipseIterator virtual table'
> It's taking place right at a constructor for both classes.
> Any ideas?
Make sure all non-inline non-abstract member functions are defined;
particularly the first of them. egcs will generate the virtual table
for a class in the translation unit that defines such a member
function. Yes, this is allowed by the C++ Standard :-)
--
Alexandre Oliva http://www.dcc.unicamp.br/~oliva aoliva@{acm.org}
oliva@{dcc.unicamp.br,gnu.org,egcs.cygnus.com,samba.org}
Universidade Estadual de Campinas, SP, Brasil