• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
this error is driving me mad
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

this error is driving me mad


  • Subject: this error is driving me mad
  • From: H.Miersch <email@hidden>
  • Date: Sat, 7 Mar 2009 12:09:20 +0000

hi.

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?
_______________________________________________
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
  • Follow-Ups:
    • Re: this error is driving me mad
      • From: Martin Kühl <email@hidden>
  • Prev by Date: Re: Double forward slashes in .xcconfig-defined build settings
  • Next by Date: Re: this error is driving me mad
  • Previous by thread: Re: Double forward slashes in .xcconfig-defined build settings
  • Next by thread: Re: this error is driving me mad
  • Index(es):
    • Date
    • Thread