Re: undefined reference to `typeinfo

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[did you bcc to gnu.org and cc to gno.org? why?]

Ross Boylan wrote:

The type AbstractLinearProduct is defined in the header for
LinearProduct, which is included in the .cc file.  Googling, it sounds
as if complaints about typeinfo may signal missing RTTI.  However, I did
not compile with no-rtti, and the included files referenced are all
source files.

Are you sure you have a definition of each non-pure virtual function. In particular check the first non-inline non-pure virtual function of AbstractLinearProduct. The compiler uses that (if it exists) as a key. It will emit the vtable, typeinfo and other class related objects in the object file containing that key.

nathan

--
Nathan Sidwell    ::   http://www.codesourcery.com   ::     CodeSourcery LLC
nathan@xxxxxxxxxxxxxxxx    ::     http://www.planetfall.pwp.blueyonder.co.uk


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux