• 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
Linking framework headers?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Linking framework headers?
      • From: Sherm Pendley <email@hidden>
  • Prev by Date: Re: Cocoa/Java - How to get files dropped onto app from Finder
  • Next by Date: Re: Linking framework headers?
  • Previous by thread: Message.framework problems!
  • Next by thread: Re: Linking framework headers?
  • Index(es):
    • Date
    • Thread