Re[2]: undefined non-virtual thunk to ...
Re[2]: undefined non-virtual thunk to ...
- Subject: Re[2]: undefined non-virtual thunk to ...
- From: Denis Osadchy <email@hidden>
- Date: Thu, 1 Feb 2007 15:17:09 +0600
- Organization: UniPro
Tuesday, December 26, 2006, 10:01:12 PM, you wrote:
SE> On Dec 26, 2006, at 3:28 AM, Denis Osadchy wrote:
>> Trying to compile project and linking my library I see several link
>> errors "undefined symbol: undefined non-virtual thunk to
>> Class::Member()". All members are from library.
>>
>> Optimization level is 0s for both projects (library and main). No
>> "pragma pack" is used in code.
>>
>> Several letters in this list archive describe this problem but there
>> is no helpful answer. If you faced with such problem - write how it
>> can be resolved.
SE> Was the library built with the same compiler you are building your
SE> application with?
Problem still exists. Yes, Both projects are compiled by gcc 4.0
(my current CXode version is 2.4.1).
Note that error disappears if Child::Member() is defined in child class
and it just calls Class::Member(), so Class::Member() exists in
library but not resolved. Note that it is not way for me to define
such members for all children since there are about hundred similar
errors.
According to posts on forums and mailing lists problem is connected
with multiple inheritance. Is it known compiler/linker bug? I have
found many posts describing similar errors but there is no information
how problem can be solved?
--
Best regards,
Denis mailto:email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden