Re: Beginning with Kernel Extension Concepts
Re: Beginning with Kernel Extension Concepts
- Subject: Re: Beginning with Kernel Extension Concepts
- From: "Michael Crawford" <email@hidden>
- Date: Tue, 13 Mar 2007 07:07:07 -0700
Could you be compiling the code as C and not C++?
extern "C" is legal in C++, but not C.
You definitely want to compile as C++ for I/O Kit drivers.
Mike Crawford
mdcrawford at gmail dot com
On 3/13/07, Francis Derive <email@hidden> wrote:
Bonjour à tous,
From Apple Dev Documentation, I get an error : "expected unqualified-id
before string constant" - on line 5 in the HelloIOKit.cpp file of this
"Hello I/O Kit : Creating a Device Driver With XCode" chapter.
I stare at it and can't think anything brilliant about it.
First, I am not sure about where the error raised from : the call to a "C "
construct, or the line before ?
//---------------------
/* add your code here */
#include <IOKit/IOLib.h>
#include "HelloIOKit.h"
extern "C" {
#include <pexpert/pexpert.h>
} // For debugging purpose only
[...]
//-------------------
Thanks.
Francis.
_______________________________________________
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
--
Michael David Crawford
mdcrawford at gmail dot com
Enjoy my art, photography, music and writing at
http://www.geometricvisions.com/
--- Free Music Downloads ---
_______________________________________________
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