Dear cryptopp-list, Hello guys. I had some problems with compiling Crypro++ on Visual Studio 2005. Probably some of you had similar experience so I've decided to share information how I solved it.
You need to download Crypto++ 5.23 from http://sourceforge.net/projects/cryptopp/ In order to compile the library under VS2005 you need to make one small change in file ECCRYPTO.CPP line 108, it will be structure OIDLessThan. Currently it is struct OIDLessThan { template <typename T> inline bool operator()(const EcRecommendedParameters<T>& a, const OID& b) {return a.oid < b;} template <typename T> inline bool operator()(const OID& a, const EcRecommendedParameters<T>& b) {return a < b.oid;} }; change it to struct OIDLessThan { template <typename T> inline bool operator()(const EcRecommendedParameters<T>& a, const OID& b) {return a.oid < b;} template <typename T> inline bool operator()(const OID& a, const EcRecommendedParameters<T>& b) {return a < b.oid;} // BEGIN: Workaround against VS2005 compilation error. template <typename T> inline bool operator()(const EcRecommendedParameters<T>& a, const EcRecommendedParameters<T>& b) {return a.oid < b.oid;} // END }; If you have any additional problems let me know. /Ruslan /mpc: rote...
