SCNetworkReachabilityCreateWithName linking problem
SCNetworkReachabilityCreateWithName linking problem
- Subject: SCNetworkReachabilityCreateWithName linking problem
- From: Ariel Rodriguez <email@hidden>
- Date: Tue, 2 Dec 2008 22:04:01 -0200
I;m trying to use SCNetworkReachabilityCreateWithName to test for
reachability on my app, but i cannot get it to link the project. The
linker complains about not finding the symbol. Obviously the directive
#import <SystemConfiguration/SystemConfiguration.h> is on place. I
have been able to succefully compile a couple of Apple applications
that use the very same piece of code, and i am wonder if there is any
special need to link the project. I really don't get a clue, and i
have read every piece of documentation i was able to reach. Please let
me know if you have any idea.
Best.
Checking Dependencies
Ld "/Users/ariel/Documents/Cocoa Programming Hillegas/iPhone/Clarin/
build/Release-iphonesimulator/Clarin.app/Clarin" normal i386
cd "/Users/ariel/Documents/Cocoa Programming Hillegas/iPhone/
Clarin"
setenv MACOSX_DEPLOYMENT_TARGET 10.5
setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/
Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/
gcc-4.0 -arch i386 -isysroot /Developer/Platforms/
iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator2.2.sdk "-L/
Users/ariel/Documents/Cocoa Programming Hillegas/iPhone/Clarin/build/
Release-iphonesimulator" "-F/Users/ariel/Documents/Cocoa Programming
Hillegas/iPhone/Clarin/build/Release-iphonesimulator" -filelist "/
Users/ariel/Documents/Cocoa Programming Hillegas/iPhone/Clarin/build/
Clarin.build/Release-iphonesimulator/Clarin.build/Objects-normal/i386/
Clarin.LinkFileList" -mmacosx-version-min=10.5 -framework Foundation -
framework UIKit -framework CoreGraphics -o "/Users/ariel/Documents/
Cocoa Programming Hillegas/iPhone/Clarin/build/Release-iphonesimulator/
Clarin.app/Clarin"
Undefined symbols:
"_SCNetworkReachabilityCreateWithName", referenced from:
-[ClarinAppDelegate isDataSourceAvailable] in ClarinAppDelegate.o
"_SCNetworkReachabilityGetFlags", referenced from:
-[ClarinAppDelegate isDataSourceAvailable] in ClarinAppDelegate.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden