[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Compilation under win32 broken
From: |
Elizabeth Barham |
Subject: |
Re: Compilation under win32 broken |
Date: |
26 Apr 2003 00:43:48 -0500 |
"W.J." writes:
> When compiling CommonC++ 1.0.9 under win32 (MSDev 6) I get the following
> error:
>
> src\sha.cpp(338): error C2593: 'operator <<' is ambigious
It seems to me that the best way to solve this situation once and for
all is to re-implement the toString function in SHATumbler<int_type>:
1) In constructor, allocate two charachter arrays:
a) for a sprintf format string
b) for a temporary string representation of the tumbler
itself (part of the total sha message)
2) In constructor, define the sprintf format string such that
it looks something like "%0[sizeof(int_type * 2)]x" using,
naturally, sprintf.
3) In SHATumbler<int_type>::toString(std::ostream & os),
sprintf is used with the generated sprintf format (in [2])
to place the tumbler's string representation in the
temorary string (in [1b]).
4) The temporary string is piped out to os
5) Destructor destroys both strings made in consructor.
I'll try to do this in the next few days.
> Furthermore, on linking it gives a error about being unable to find
> '_thiscall ost::SHATumbler<unsigned __int32>::placeInBuffer(unsigned
> char*)'
> (occurences in digest.obj and md5.obj)
Did adding this to sha.cpp:
#ifdef __WIN32__
unsigned
SHATumbler<uint32>::placeInBuffer(unsigned char *);
#endif
make any difference?
Thank you,
Elizabeth