Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SCNetworkCheckReachabilityByName causing link errors



I'm running Xcode 2.1, targeting 10.3.9 SDK and have the Cocoa.framework and Carbon.framework linked in as well as SystemConfiguration.framework in an Application target.

However, when I add a call to SCNetworkCheckReachabilityByName, I get the following undefined symbol:

_pthread_atfork referenced from SystemConfiguration expected to be defined in libSystem.

I tried linking in System.framework, but that didn't seem to help.

Is there another framework I need to be linking in? Where is _pthread_atfork defined?

I want to be able to do is test to see if there is a network connection (without initiating a dial-up).

I've been able to use this call if I'm building a framework target, so I'm confused why my Application won't link.

Any help and/or insight would be appreciated.

Thanks.

Mark Munz
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.