On Thursday, March 13, 2014 6:20:11 PM UTC-4, Alex wrote: > > Hey guys - having a hard time to connect crypto++ ios library to surespot > app (https://www.surespot.me/). > > I was able to build a fat libcryptopp.a and connect it to surespot. I also > put the latest (5.6.2) headers to surespot ios app. But for some reason I > see all these errors during linking - looks like the issue is in crypto++ > itself. This makes me crazy, spent a few days on this, please help! > > Check log below. Full log - http://pastebin.com/EaMPcM9s > > Many thanks! > > > Undefined symbols for architecture i386: > > > "CryptoPP::RandomPool::GenerateIntoBufferedTransformation(CryptoPP::BufferedTransformation&, > > std::string const&, unsigned long long)", referenced from: > > vtable for CryptoPP::AutoSeededRandomPool in EncryptionController.o > > > "CryptoPP::StringStore::TransferTo2(CryptoPP::BufferedTransformation&, > unsigned long long&, std::string const&, bool)", referenced from: > > CryptoPP::SourceTemplate<CryptoPP::StringStore>::Pump2(unsigned long > long&, bool) in EncryptionController.o > > > "CryptoPP::StringSinkTemplate<std::string>::StringSinkTemplate(std::string&)", > > referenced from: > > +[EncryptionController encryptData:withPassword:andRounds:] in > EncryptionController.o > > +[EncryptionController decryptData:withPassword:andRounds:] in > EncryptionController.o > > +[EncryptionController encryptPlain:usingKey:usingIv:] in > EncryptionController.o > > +[EncryptionController encryptData:usingKey:usingIv:] in > EncryptionController.o > > +[EncryptionController decryptData:usingKey:usingIv:] in > EncryptionController.o > >From the Pastebin, I believe you need to build a *new* libcryptopp.a. But you need to include `-stdlib=libstdc++` in the CXXFLAGS.
There are instrcutions on building Crypto++ from the command line at http://www.cryptopp.com/wiki/IOS_(Command_Line). But you will need to add `-stdlib=libstdc++` in the CXXFLAGS. Jeff -- -- You received this message because you are subscribed to the "Crypto++ Users" Google Group. To unsubscribe, send an email to [email protected]. 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
