Article View: comp.sys.mac.programmer.codewarrior
Article #1062mach/mach.h and IOKit functions
From: ccorbell
Date: Tue, 05 Feb 2002 18:40
Date: Tue, 05 Feb 2002 18:40
27 lines
1930 bytes
1930 bytes
This is a slightly reworded re-post since I still don't know where MW stands on this.... Does CW7 support directly calling functions from mach/mach.h? Does CW7 support directly calling functions from IOKit? I'm getting link errors, working with the mach-o stationery. The project includes System, IOKit, and CoreFoundation frameworks. When I #define DARWIN in a prefix file, most errors go away but a few remain - link errors for any mach.h function, and also link errors I don't understand like: ___mod2u is undefined ___div2u is undefined The functions I'm calling are all lifted from Apple's Simple USB Example main.c file which works under ProjectBuilder. Has anyone out there directly called mach.h functions with CW7? If so, any clue as to what I'm missing? If it isn't supported I can use CFPlugin utilites to get the function pointers I need, I'd just rather not have to go that route, esp. since the app isn't CFM. TIA, Chris Corbell
Technical Details
Message-ID:
<3C602717.27F3AA60@vernier.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-post-01!supernews.com!corp.supernews.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10bcce,d90ff54a1a5a9456,start
X-Google-Attributes: gid10bcce,public
X-Google-Thread: f635e,d90ff54a1a5a9456,start
X-Google-Attributes: gidf635e,public
X-Google-ArrivalTime: 2002-02-05 10:46:49 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-post-01!supernews.com!corp.supernews.com!not-for-mail
From: ccorbell <ccorbell@vernier.com>
Newsgroups: comp.sys.mac.programmer.codewarrior,codewarrior.mac
Subject: mach/mach.h and IOKit functions
Date: Tue, 05 Feb 2002 10:40:24 -0800
Organization: Posted via Supernews, http://www.supernews.com
Message-ID: <3C602717.27F3AA60@vernier.com>
Reply-To: chriscorbell@earthlink.net
X-Mailer: Mozilla 4.77C-CCK-MCD {C-UDP; EBM-APPLE} (Macintosh; U; PPC)
X-Accept-Language: en
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Complaints-To: newsabuse@supernews.com
Lines: 27