Re: this error is driving me mad
Re: this error is driving me mad
- Subject: Re: this error is driving me mad
- From: Martin Kühl <email@hidden>
- Date: Sat, 7 Mar 2009 13:15:10 +0100
On Sat, Mar 7, 2009 at 13:09, H. Miersch <email@hidden> wrote:
> i'm trying to learn how to access USB devices so i can add support for an
> analogue joystick to an existing game. for that purpose i've started a new
> project that is supposed to read the data from the joystick and move some
> sliders accordingly.
> anyway, I have this
>
> - (void) awakeFromNib
> {
> kr = IOMasterPort(MACH_PORT_NULL, &masterPort);
> }
>
> in controller.m. the problem is that during linking i get the following
> error:
>
> "_IOMasterPort", referenced from:
> -[Controller awakeFromNib] in Controller.o
> ld: symbol(s) not found
> collect2: ld returned 1 exit status
>
> the bit that drives me mad is that the line works in
> USBNotificationExample.xcodeproj, but not in my project, and i just CAN'T
> FIND OUT WHY. argh!
>
> can anyone point me in the right direction? is it because it is C code in a
> .m file?
Have you forgotten to add the IOKit framework to your project?
Martin
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden