This is the mail archive of the gcc@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]

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



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