Using the current code in CVS, you can probably build Crypto++ for IA64 using the same code as for AMD64. Trying this: search for _M_X64 and replace it with _M_IA64 (or add more #ifdefs). Please let me know whether this works. If it does, I'll update the CVS.

----- Original Message ----- From: "Joseph Galbraith" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Friday, August 12, 2005 12:22 PM
Subject: Re: How to create IA64 cryptlib.lib using MS Platform SDK?


My first guess is that you'll get farther with CVS than
with 5.2.1.  I think Wei Dai has done some work in 5.3
to get it building 64 bit.

(I have successfully built CVS for AMD64 using the beta
version of DevStudio 2005.)

I forget; is IA64 the abreviation for itanium code?  If
so you may be in for more work... a brief glance at the
code seemed to indicate it didn't yet have all the #ifdef's
for itanium.

Thanks,

Joseph

Antony wrote:
Hi all,

I tried to create IA64 version of cryptlib.lib using MS Platform SDK. But
when I use the command: cl *.cpp /Ehsc I got this errors:

c:\temp\cryptopp521IA64\modarith.h(125) : error C2327:
'CryptoPP::ModularArithmetic::modulus' : is not a type name, static, or
enumerator

c:\temp\cryptopp521IA64\dll.h(55) : error C2039: 'new_handler' : is not a
member of 'std'

c:\temp\cryptopp521IA64\dll.h(55) : error C2868: 'new_handler' : illegal
syntax for using-declaration; expected qualified-name

ida.cpp(398) : error C2976: 'std::reverse_iterator' : too few template
arguments
C:\Program Files\Microsoft Platform SDK\Include\crt\utility(173) :
see declaration of 'std::reverse_iterator'

ida.cpp(400) : error C2440: 'type cast' : cannot convert from 'const byte
*const ' to 'std::reverse_iterator'
No constructor could take the source type, or constructor overload
resolution was ambiguous

ida.cpp(400) : error C2440: 'type cast' : cannot convert from 'const byte *'
to 'std::reverse_iterator'
No constructor could take the source type, or constructor overload
resolution was ambiguous

ida.cpp(400) : error C2228: left of '.base' must have class/struct/union
type
misc.cpp(80) : error C2039: 'new_handler' : is not a member of 'std'
misc.cpp(80) : error C2868: 'new_handler' : illegal syntax for
using-declaration; expected qualified-name
misc.cpp(81) : error C2039: 'set_new_handler' : is not a member of 'std'
misc.cpp(81) : error C2873: 'set_new_handler' : symbol cannot be used in a
using-
c:\temp\cryptopp521IA64\dll.h(55) : error C2039: 'new_handler' : is not a
member of 'std'
c:\temp\cryptopp521IA64\dll.h(55) : error C2868: 'new_handler' : illegal
syntax for using-declaration; expected qualified-name
wait.cpp(217) : error C2782: 'const T &CryptoPP::STDMIN(const T &,const T
&)' : template parameter 'T' is ambiguous
        c:\temp\cryptopp521IA64\misc.h(120) : see declaration of
'CryptoPP::STDMIN'
        could be 'unsigned __int64'
        or 'unsigned int'
zdeflate.cpp(635) : error C2976: 'std::reverse_iterator' : too few template
arguments
C:\Program Files\Microsoft Platform SDK\Include\crt\utility(173) :
see declaration of 'std::reverse_iterator'
zdeflate.cpp(644) : error C2440: 'type cast' : cannot convert from 'unsigned
int *' to 'std::reverse_iterator'
No constructor could take the source type, or constructor overload
resolution was ambiguous
zdeflate.cpp(644) : error C2228: left of '.base' must have
class/struct/union type
zdeflate.cpp(648) : error C2440: 'type cast' : cannot convert from 'unsigned
int *' to 'std::reverse_iterator'
No constructor could take the source type, or constructor overload
resolution was ambiguous
zdeflate.cpp(648) : error C2228: left of '.base' must have
class/struct/union type

Is the command cl *.cpp /Ehsc correct? I assumed tht I only needed to create .obj using 64bit compiler and then lib (lib *.obj) them together to create cryptlib.lib, correct? Is there any samples/notes/site that can help me with this? I've searched the web and found http://www.winimage.com/misc/sdk64onvs2005/ but it doesn't
have anything for MS Platform SDK :(.

Please bear with me, as I actually have little knowledge on C++ whether it's
64 or 32bit.

Regards,
Antony




Reply via email to