This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: What does "pure virtual method called" error mean?
- From: Alexandre Oliva <aoliva at redhat dot com>
- To: Abizar <Abizar at stts dot com dot sg>
- Cc: gcc at gcc dot gnu dot org
- Date: 23 Jan 2002 13:24:16 -0200
- Subject: Re: What does "pure virtual method called" error mean?
- Organization: GCC Team, Red Hat
- References: <5740DA07640CD41189DA00A0C9F4933A01574190@VOYAGER_1>
On Jan 23, 2002, Abizar <Abizar@stts.com.sg> wrote:
> During run-time, my program terminates and the message "pure virtual method
> called" is shown.
> The program was compiled using GCC3.0.3. I would like to know what are its
> possible causes.
In general, it means you've called a method that is declared pure
virtual (i.e., virtual with a = 0 ``initializer''). Such a method can
only be called if you call it from within a constructor or a
destructor of a base class or if you explicitly tell the compiler to
call a base class method using the baseclass::method() notation.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me