> > LNK2001 unresolved external symbol "public: virtual void __cdecl > > > CryptoPP::DL_SignatureMessageEncodingMethod_DSA::ComputeMessageRepresentative(class > > > > CryptoPP::RandomNumberGenerator &,unsigned char const *,unsigned > > __int64,class CryptoPP::HashTransformation &,struct std::pair<unsigned > char > > const *,unsigned __int64>,bool,unsigned char *,unsigned __int64)const " > > > (?ComputeMessageRepresentative@DL_SignatureMessageEncodingMethod_DSA@CryptoPP@@UEBAXAEAVRandomNumberGenerator@2@PEBE_KAEAVHashTransformation@2@U?$pair@PEBE_K@std@@_NPEAE2@Z) > > > > > > LNK2001 unresolved external symbol "public: virtual bool __cdecl > > > CryptoPP::PK_DeterministicSignatureMessageEncodingMethod::VerifyMessageRepresentative(class > > > > CryptoPP::HashTransformation &,struct std::pair<unsigned char const > > *,unsigned __int64>,bool,unsigned char *,unsigned __int64)const " > > > (?VerifyMessageRepresentative@PK_DeterministicSignatureMessageEncodingMethod@CryptoPP@@UEBA_NAEAVHashTransformation@2@U?$pair@PEBE_K@std@@_NPEAE_K@Z) > > > > > > Are these problems with the PlatformToolset is set to v120? > > I can't duplicate the issue using the latest sources. That's under > bother Vs2010.zip and Vs2010-dynamic.zip. For completeness, I > performed a Build -> Batch Build -> Build All. The Build All builds > all of the 24 configurations as described on the Visual Studio wiki > page ( > https://www.cryptopp.com/wiki/Visual_Studio#Projects_and_Configurations). > > I guess the next question to ask is, what version of the library are > you using, and where did you get the library? As far as I know, a > similar issue under Clang was cleared via > https://github.com/weidai11/cryptopp/issues/300. Clang's fix broke > Visual Studio momentarily, but it was cleared the same day. >
I just went back to the Crypto++ 5.6.5 ZIP and repeated the exercise with the static and dynamic projects. Everything worked as expected. I'm guessing there's something wonky going on with your project configuration. Did you include the same preprocessor macro definitions in your project that Crypto++ uses? You can see what Crypto++ uses for them by inspecting a project file's; see for example https://github.com/weidai11/cryptopp/blob/master/cryptlib.vcxproj. You can see what a macro does at https://cryptopp.com/wiki/Config.h. 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.
