I/O Registry access

Used for discussing the various tools in the book as well as encouraging members to share tools

I/O Registry access

Postby siya » Thu Aug 11, 2016 11:05 am

I try to run the code in listing 19-3, which is to traversing iokit service plane.
But I fail to compile it on both ios and osx. have symbol problems.

on ios there's no iokit.framework to import, i have these errors: (iphone 6s 9.2)
(null): "_IOServicMatching", referenced from:

(null): _main in main.o

(null): "_kIOMasterPortDefault", referenced from:

(null): _main in main.o

(null): "_IOIteratorIsValid", referenced from:

(null): _main in main.o

(null): "_IOObjectRelease", referenced from:

(null): _main in main.o

(null): "_IORegistryEntryGetPath", referenced from:

(null): _main in main.o

(null): "_IOIteratorNext", referenced from:

(null): _main in main.o

(null): "_IOServiceGetMatchingServices", referenced from:

(null): _main in main.o

(null): "_IORegistryEntryGetName", referenced from:

(null): _main in main.o

(null): Symbol(s) not found for architecture armv7

on osx 10.11, impoted the iokit.framework:
"_IOServicMatching", referenced from:


_main in main.o


ld: symbol(s) not found for architecture x86_64
siya
 
Posts: 2
Joined: Thu Jul 21, 2016 9:30 am

Re: I/O Registry access

Postby morpheus » Thu Aug 11, 2016 3:31 pm

Use
-framework IOKit
when compiling. And all will be fixed. Btw - "IOServiceMatching"
morpheus
Site Admin
 
Posts: 532
Joined: Thu Apr 11, 2013 6:24 pm


Return to Tools

Who is online

Users browsing this forum: No registered users and 2 guests