Quick Links:
Empeg FAQ
|
RioCar.Org
|
Hijack
|
BigDisk Builder
|
jEmplode
|
emphatic
Repairs: Repairs
|
#263500 - 26/08/2005 07:29
Re: undefined reference to virtual table / type_info function
[Re: Andre81]
|
carpal tunnel
Registered: 13/07/2000
Posts: 4180
Loc: Cambridge, England
|
Quote: The type_info function is an internal gcc function and i get a undefined reference to virtual table linker error if i declare a c'tor or d'tor.
Are you using ld, gcc or g++ as the linker command? You get extra magic if you link using g++. Otherwise I'd suggest that you've failed to implement a method somewhere -- GCC "keys" generation of the vtable to one of the methods (to avoid having to compile it multiple times) and, if it happens to have picked one you haven't implemented, linking will fail.
Peter
|
Top
|
|
|
|
|
|
|