On Saturday, March 10, 2018 at 8:09:05 AM UTC-5, Jeemon Joy wrote:
>
> First of all, I would like to thank the owners and developers of cryptopp. 
> It really helps to understand and learn more about cryptography.
> For me, cryptopp610 was not compiling in Visual Studio 2010. It is due to 
> uint8_t, uint32_t and uint64_t type specifiers.
> Attaching files I modified minimally to get it compiled. Please suggest if 
> a better method is there
>

Thanks Jeemon. That looks like a bug on our part. The questions are, why 
and how to fix it...

The Crypto++ header responsible for including the the right system header 
for uint32_t and friends is "std.cpp.h" 
(https://github.com/weidai11/cryptopp/blob/master/stdcpp.h#L58):

    // uintptr_t and ptrdiff_t 
    #if (__cplusplus < 201103L) && (!defined(_MSC_VER) || (_MSC_VER >= 
1700)) 
    # include <stdint.h> 
    #elif defined(_MSC_VER) && (_MSC_VER < 1700) 
    # include <stddef.h> 
    #endif

I believe your local install of VS2010 should use Microsoft's <stddef.h> .

I think the first thing we should do is, add #include "stdcpp.h" to 
aria.cpp.

The second fix is to replace uint32_t with word32. I've been a bit lazy 
about doing this, but if its causing compile problems then I need to 
revisit it.

If you provide the compile errors we can open a bug report and track the 
issue and changes. I can open the bug report if you provide the error 
messages.

Jeff

-- 
You received this message because you are subscribed to "Crypto++ Users". More 
information about Crypto++ and this group is available at 
http://www.cryptopp.com and 
http://groups.google.com/forum/#!forum/cryptopp-users.
--- 
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.

Reply via email to