Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Linking to standard libs in building a KEXT
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Linking to standard libs in building a KEXT



You cannot link against userspace libraries in a kext.

Some standard things are included in the kernel's c/c++ runtimes. Since your worried about name mangling I assume you want to link some c++ library in, and my guess would be in most cases you simply can't. There are situations where things like this can be done (the bootstrap kernel linker comes to mind) for simple code with dependencies on the userspace environment



On Thursday, March 28, 2002, at 09:51 AM, Sean Morrell wrote:

I would like to use some of the functions provided by the standard c or
c++ library from a KEXT. Is this possible? For instance, I would like to
use sin to debug some problems in my audio driver. Is the name mangling
different when code is being compiled for a kernel module? Can I link
against a dylib? What must be done to link against the standard
libraries, if this is possible?

Thanks,

Sean
_______________________________________________
darwin-kernel mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-kernel
Do not post admin requests to the list. They will be ignored.
_______________________________________________
darwin-kernel mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-kernel
Do not post admin requests to the list. They will be ignored.

References: 
 >Linking to standard libs in building a KEXT (From: "Sean Morrell" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.