Can we build crypto 5.4.12 on Visual Studio2008?

32 views
Skip to first unread message

Mayank Srivastava

unread,
Mar 28, 2016, 2:52:22 AM3/28/16
to Crypto++ Users
Hello

I am using crypto 5.4.12 but due to code migration from Visual Studio 2005 to Visual Studio 2008, I also need to compile this version of crypto in 2008 too.
But in release(VS 2008) build mode it is showing error in XUTILITY file.

Error    1    error C2664: 'CryptoPP::AllocatorWithCleanup<T>::AllocatorWithCleanup(const CryptoPP::AllocatorWithCleanup<T> &)' : cannot convert parameter 1 from 'CryptoPP::AllocatorWithCleanup<T>' to 'const CryptoPP::AllocatorWithCleanup<T> &'    C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\include\xutility    418

Jeffrey Walton

unread,
Mar 29, 2016, 8:56:00 AM3/29/16
to Crypto++ Users

I am using crypto 5.4.12 but due to code migration from Visual Studio 2005 to Visual Studio 2008, I also need to compile this version of crypto in 2008 too.
But in release(VS 2008) build mode it is showing error in XUTILITY file.

Error    1    error C2664: 'CryptoPP::AllocatorWithCleanup<T>::AllocatorWithCleanup(const CryptoPP::AllocatorWithCleanup<T> &)' : cannot convert parameter 1 from 'CryptoPP::AllocatorWithCleanup<T>' to 'const CryptoPP::AllocatorWithCleanup<T> &'    C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\include\xutility    418

Crypto++ 5.4 is from 2006, and its not surprising it won't work with VS2008.

If you feel the need to use a release contemporary with the compiler, below is a list of filetimes for releases. it looks like Crypto++ 5.5.2 or Crypto++ 5.6 are the versions you would be interested in for something contemporary to VS2008.

Otherwise, you should be fine using the latest Crypto++ with Visual Studio 2008.

Jeff

829560 Mar 22  2003 crypto51.zip
1045252 Jun 29  2004 crypto52.zip
1010937 Jul 21  2004 cryptopp521.zip
950582 Dec 22  2006 cryptopp54.zip
982094 May  5  2007 cryptopp55.zip
982157 May 25  2007 cryptopp551.zip
992073 Sep 25  2007 cryptopp552.zip
1049029 Mar 15  2009 cryptopp560.zip
1069703 Aug  9  2010 cryptopp561.zip
1137964 Feb 20  2013 cryptopp562.zip
1298284 Nov 22 19:56 cryptopp563.zip

Mayank Srivastava

unread,
Mar 30, 2016, 3:12:34 AM3/30/16
to Crypto++ Users
Thank you
Mayank

Mayank Srivastava

unread,
Mar 30, 2016, 4:51:41 AM3/30/16
to Crypto++ Users
Can i use HAVAL in 5.6.0? When i am using HAVAL files from older version of crytpo there are errors. Do i need to change namespace or any other change?
Reply all
Reply to author
Forward
0 new messages