Hey,

maybe it's just me and I'm too stupid of OS X (Windows fan).
BUT it looks like you didn't specifed AMD64 / X64 as target architecture 
for the library build and hence you'll get an error when trying to build 
something for AMD64 / X64.

BR

JPM

Am Montag, 12. Januar 2015 12:19:37 UTC+1 schrieb Andreas Kirkerud:
>
> Hi,
>
> 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):
>
> diegostamigni/cryptopp-5.6.2-ios 
> <https://github.com/diegostamigni/cryptopp-5.6.2-ios> compiled in 
> terminal ( Architectures in the fat file: armv7 armv7s i386 arm64)
> and
> kwongius/CryptoPP-iOS <https://github.com/kwongius/CryptoPP-iOS> patched 
> with Cryptopp-mobile.zip 
> <http://www.cryptopp.com/w/images/a/a0/Cryptopp-mobile.zip> compiling in 
> XCode and terminal ( Architectures in the fat file: armv7 arm64)
>
>
> Tips on how to resolve this issue would be much appreciated :-)
>
>

-- 
-- 
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to cryptopp-users-unsubscr...@googlegroups.com.
More information about Crypto++ and this group is available at 
http://www.cryptopp.com.
--- 
You received this message because you are subscribed to the Google Groups 
"Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cryptopp-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to