Re: undefined reference to vtable for xxx

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

 



Am Montag, 28. Januar 2008 01:46 schrieb David H. Lynch Jr.:

> 	What you asked is below. The class Bluetooth inherits from the class
> wxPanel, ... But I am not really looking for a specific answer to my
> specific problem. I bump into this particular problem fairly regularly
> porting working windows C++ code to GCC. Chasing down every method from a
> parent to a child - when I am not intimate with either the parent or child
> classes, wwhere the parent class is often from some toolkit and itself may
> be fairly deep in an object tree, is tedious - it is the kind of job tools
> are supposed to do for us.

Problems of this kind arise when the vtable of the derived class is not linked 
to the binary. g++ put the vtable in the object file where the first 
non abstract virtual method of the object is defined. This behavior also gives 
problems if the first virtual function is inline. In this second case the 
compiler yields the vtable in ervery object file where the class header is 
included.

bye
Rudi

-- 
GPG encrypted mails preferred.
GPG verschlüsselte Mails bevorzugt.
---> http://chaosradio.ccc.de/media/ds/ds085.pdf Seite 20 <----


[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