CoreWLAN CWKeychainCopyPassword() Linker issue
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