Linking framework headers?
Linking framework headers?
- Subject: Linking framework headers?
- From: Andrew Baldwin <email@hidden>
- Date: Thu, 13 Jun 2002 20:02:35 -0400
I've never had to use a framework before and I've added SystemConfiguration.framework to my project because I want to use SCNetwork.h. In my code I have:
- (BOOL)isNetConnection
{
SCNetworkConnectionFlags netConnectionFlags;
return (SCNetworkCheckReachabilityByName("www.apple.com", &netConnectionFlags) &&
(netConnectionFlags & 1));
}
I got a build error that SCNetworkCheckReachabilityByName(...) and SCNetworkConnectionFlags are undefined. I then tried adding
#import "SCNetwork.h"
to my code and then I got a build error telling me SCNetwork.h couldn't be found.
How do I properly link in the framework/import it/etc. so that I can use the above function in my code to determine whether there is a net connection.
Thanks for any help,
Andrew Baldwin
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.