On Tue, Sep 11, 2012 at 10:59 AM, Gerriet M. Denkmann <gerriet@mdenkmann.de> wrote:
But: when I write: #import <kern/clock.h> Xcode does not find anything. This though gets found: #import <Kernel/kern/clock.h> But then clock.h has a reference: #include <kern/kern_types.h>
and Xcode complains again: file not found.
Hmm, this is a kext target, right? Normally, such targets are aware of the Kernel.framework by default when created by XCode. I just tried creating a new IOKit kext project and added #include <kern/clock.h> to the main .cpp file, and it worked fine. The compiler command line for .c/.cpp files in your kext should automatically contain the argument -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/Kernel.framework/Headers or similar - I've never had a problem with this disappearing, so I'm not sure what you need to do if it's gone missing in your project. The Kernel.framework certainly doesn't appear in the "Header Search Paths" build setting in XCode. phil _______________________________________________ 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: https://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.... This email sent to site_archiver@lists.apple.com