• 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
illegal reference to symbol: _IOIteratorNext
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

illegal reference to symbol: _IOIteratorNext


  • Subject: illegal reference to symbol: _IOIteratorNext
  • From: CK subscriptions <email@hidden>
  • Date: Sun, 24 Oct 2004 23:52:06 -0600

My application builds and runs fine in development mode. However, when I switch to the deployment build style, everything still compiles but I get the following error during linking:

ld: .../Objects-normal/ppc/Ethernet.o illegal reference to symbol: _IOIteratorNext defined in indirectly referenced dynamic library /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit

Umm, what? Here's the code snippet using that function:

static kern_return_t GetMACAddress(io_iterator_t intfIterator, UInt8 *MACAddress)
{
io_object_t intfService;
io_object_t controllerService;
kern_return_t kernResult = KERN_FAILURE;


    // Initialize the returned address
    bzero(MACAddress, kIOEthernetAddressSize);

// IOIteratorNext retains the returned object, so release it when we're done with it.
while (intfService = IOIteratorNext(intfIterator))
{
...
}


I got this code from one of the DTS example code applications. Why would it link in debug mode but not in deployment mode? Could it be because zero-link is turned off in deployment mode? So what's "illegal" about using this function? How do I fix this problem?

Another issue: when I switched back to development mode, breakpoints no longer work in the debugger! How do I fix this problem as well?

_______________________________________________
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: illegal reference to symbol: _IOIteratorNext
      • From: Eric Albert <email@hidden>
    • Re: illegal reference to symbol: _IOIteratorNext
      • From: j o a r <email@hidden>
  • Prev by Date: Re: Applescript
  • Next by Date: Re: illegal reference to symbol: _IOIteratorNext
  • Previous by thread: Re: Applescript
  • Next by thread: Re: illegal reference to symbol: _IOIteratorNext
  • Index(es):
    • Date
    • Thread