Re: Beginning with Kernel Extension Concepts
site_archiver@lists.apple.com Delivered-To: Darwin-kernel@lists.apple.com Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=cWZ/ck2h2EWSDXcp9Y36dIsgHQkBulmOAAWuaAupQVo4zEpS0cKXCHRv0FwUz4NqUg0u3Xjpvlg60cvhrWJM2cn7yM3bHKmLx4tay6CIyuwuLlxgbYOv6w+eL3ooKGLIMZox4QvFJAYs5XwMAaXyxQnjQfhwEk23wA7kVjldaJQ= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=DA5uv3MilMFrVB/c/MRqad0aZalwrdwwW1o/BzO6c6aXuu85cRe5Zkve8dFJQEhaDjSxqNXNAISTe5og0/faZQ3dNvov6mTYF6kaqiG46VVytQIwueM03zoS0zqYXk3RovQhGXwDNyaY2HCQlcSsbhLH0jz2Zm1JPOJvtOD5s0s= 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 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 (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/mdcrawford%40gmail.com This email sent to mdcrawford@gmail.com -- 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 (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... On 3/13/07, Francis Derive <francisderive@mac.com> wrote: This email sent to site_archiver@lists.apple.com
participants (1)
-
Michael Crawford