Re: AbsoluteToNanoseconds deprecated - so use what instead?
Re: AbsoluteToNanoseconds deprecated - so use what instead?
- Subject: Re: AbsoluteToNanoseconds deprecated - so use what instead?
- From: Phil Jordan <email@hidden>
- Date: Tue, 11 Sep 2012 11:38:27 +0200
On Tue, Sep 11, 2012 at 10:59 AM, Gerriet M. Denkmann
<email@hidden> 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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden