When building projects with the CryptoPP 5.6.2 lib ( added under "Link Binary With Libraries" and the header files pointed to under "Search Paths") in XCode I get the following error:
Ld /Users/user/Library/Developer/Xcode/DerivedData/macarena-hgvjldavhkgvznzg/Build/Products/Debug-iphonesimulator/macarena.app/macarena normal x86_64 cd /Users/user/xcode/macarena
export IPHONEOS_DEPLOYMENT_TARGET=8.1
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr
________________________________________________________________
Undefined symbols for architecture x86_64:
"CryptoPP::AlignedAllocate(unsigned long)", referenced from:
CryptoPP::AllocatorWithCleanup<unsigned char, true>::allocate(unsigned long, void const*) in SomeViewController.o
"CryptoPP::AlignedDeallocate(void*)", referenced from:
CryptoPP::AllocatorWithCleanup<unsigned char, true>::deallocate(void*, unsigned long) in SomeViewController.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I get error when I include the following code in SomeViewController.mm :
GCM<AES>::Encryption e;
I have been able to use some other functions from the self compiled cryptopp-lib without it crashing on me, ex:
CryptoPP::AutoSeededRandomPool randomRng(true, 32);
I am trying to build for the simulator in XCode 6.1.1 running in Os X 10.10.1 (Yosemiti) on a MBP.
The libs and headers have been compiled from ( I have tried some others as well with no luck):
and
Tips on how to resolve this issue would be much appreciated :-)