Re: bad_typeid dyld Error on Leopard (10.5)
Re: bad_typeid dyld Error on Leopard (10.5)
- Subject: Re: bad_typeid dyld Error on Leopard (10.5)
- From: Manfred Schwind <email@hidden>
- Date: Thu, 20 May 2010 08:34:40 +0200
> Note that only in the 10.6 SDK the what() method is declared (but not defined). So when compiling with the 10.6 SDK but targeting 10.5 as minimum OS, the compiled code assumes that bad_typeid has a what() method. When running on 10.5 the symbol for bad_typeid::what() is just missing and dyld will bail out.
> So I think the different declarations break ABI compatibility, don't they?
>
> My workaround is now to define std::bad_typeid::what() somewhere in my own code. Now my app is running fine on 10.5. It's also still running fine on 10.6 (I thought I may get duplicate symbol error from dyld, but luckily that's not the case):
Hmmm, unfortunately this did not help in all cases. I am targeting 10.4 as minimum OS and using the 10.6 SDK.
My binary is now working on 10.6 (Intel), 10.5 (G4) and 10.4 (G4). But on 10.5 (Intel) it still complains about the missing symbol __ZNKSt10bad_typeid4whatEv in libstdc++.6.dylib.
Any ideas what this could be?!? How can I debug that further?
Regards,
Mani
--
http://mani.de - friendly software
iVolume - listen to music hands-free
LittleSecrets - the encrypted notepad
Sahara - sand in your pocket
Watchdog - baffle the curious
_______________________________________________
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