• 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
CoreWLAN CWKeychainCopyPassword() Linker issue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CoreWLAN CWKeychainCopyPassword() Linker issue


  • Subject: CoreWLAN CWKeychainCopyPassword() Linker issue
  • From: vikas jain <email@hidden>
  • Date: Wed, 19 Dec 2012 17:47:58 +0530


Hi 
I have a sample program which scans , connects and disconnects from airport. I wanted to connect to already remembered network and was trying to get the password of the network using following api CWKeychainCopyPassword(). When I add this api the code compiles fine but  give me a linker issue. I have added the snippet  below

  NSString *pass =nil;

                                                NSData *ssdData = [network ssidData]; 

                                                CFDataRef sdata = CFDataCreate(NULL,(const UInt8 *)[ssdData bytes], [ssdData length]);

                                                //CWKeychainDeletePassword(ssiddata);

                                              //  CWKeychainCopyEAPIdentityList(&list);

                                               state = CWKeychainCopyPassword((CFDataRef)ssdData,(CFStringRef*)pass);


and i get following error 

Undefined symbols for architecture x86_64:

  "CWKeychainCopyPassword(__CFData const*, __CFString const**)", referenced from:

      Wifimanger::connect(char*, int) in libMacWifi.a(Wifimanger.o)

ld: symbol(s) not found for architecture x86_64

clang: error: linker command failed with exit code 1 (use -v to see invocation)

and I also any api i call from corewlanutil.h i get above error

Please  help 


Thanks in advance.

--
Vikas Jain
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: CoreWLAN CWKeychainCopyPassword() Linker issue
      • From: "Quinn \"The Eskimo!\"" <email@hidden>
  • Prev by Date: Stale DNS Cache Problem?
  • Next by Date: Re: CoreWLAN CWKeychainCopyPassword() Linker issue
  • Previous by thread: Re: Stale DNS Cache Problem?
  • Next by thread: Re: CoreWLAN CWKeychainCopyPassword() Linker issue
  • Index(es):
    • Date
    • Thread