I am running OSX Lion and would like to register for sleep notifications using I/O Kit as referenced here.
When I compile the code, I get Undefined symbols for architecture x86_64
for the following symbols IOAllowPowerChange
, IORegisterForSystemPower
and IONotificationPortGetRunLoopSource
.
I searched in Apple's documentation and they are all public functions. Any suggestions as to why I am getting those issues?