illegal reference to symbol: _IOIteratorNext
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