site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Thread-index: Aco6x49E+cw/DkvTRTKT4UC934KPuQADlwTA Hi Niklas,
Niklas Hoglund wrote:
When I try it in the kext where I want it to go, I still get an unresolved reference on __ZN17IOPolledInterface9metaClassE. I notice the working case links to __ZN17IOPolledInterface10metaClassE. I should be able to track that down by comparing differences between the projects.
Sorry to reply to myself, but I want to clarify now that I solved it. It turns out the two things that are linked to are IOPolledInterface::metaClass and IOPolledInterface::gMetaClass. I didn't spot the difference in the mangled names. The former is not exported, as far as I can see, but it is not used if I only subclass IOPolledInterface. It gets used if I try to do an OSDynamicCast to IOPolledInterface.
Exactly. It's used only if you use OSDynamicCast. Unfortunately when we wanna use OSDynamicCast macro appropriate metaClass symbols are expected to be additionally required. Best, - Alexander _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/alexander.k%40winmagic. com This email sent to alexander.k@winmagic.com _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com