Re: C++ class declaration in NKE
Re: C++ class declaration in NKE
- Subject: Re: C++ class declaration in NKE
- From: Jean Suisse <email@hidden>
- Date: Mon, 27 Aug 2012 13:28:12 +0200
Dear Quinn,
Thank you very much for your reply.
I was able to get my NKE to compile by changing the NKE main file's extension from ".c" to ".cpp".
However, it won't load due to some unresolved symbols and I don't know how to solve this.
Probably some export keyword to add to the class declaration I guess… Could you point me to the right direction ?
Btw. I don't use the "namespace" keyword mentioned in the documentation you pointed out (I am not familiar with using namespaces).
I respect all naming conventions, so there should be no collisions. Should I use namespaces ?
Best regards,
Jean
On 27 août 2012, at 13:15, Quinn The Eskimo! wrote:
>
> On 26 Aug 2012, at 14:41, Jean Suisse <email@hidden> wrote:
>
>> So I guess that using c++, thought unusual, would be possible ?
>
> C++ works in the kernel enough to get the stuff that I/O Kit uses working [1]. However, this support isn't just restricted to I/O Kit KEXTs, so an an NKE should be able to use that same subset of C++. The tools and sample code aren't really set up to do this, so you might need to do some futzing.
>
> Share and Enjoy
> --
> Quinn "The Eskimo!" <http://www.apple.com/developer/>
> Apple Developer Relations, Developer Technical Support, Core OS/Hardware
>
> [1] The specific subset is described in the "Language Choice" section of "I/O Kit Fundamentals".
>
> <https://developer.apple.com/library/mac/#documentation/DeviceDrivers/Conceptual/IOKitFundamentals/Features/Features.html#//apple_ref/doc/uid/TP0000012-TPXREF105>
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Macnetworkprog mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden