libtom / libtommath

LibTomMath is a free open source portable number theoretic multiple-precision integer library written entirely in C.
https://www.libtom.net
Other
650 stars 194 forks source link

'__int128' keyword not supported on this architecture x64 libtommath #99

Closed shaildev123 closed 6 years ago

shaildev123 commented 6 years ago

Hi,

Can you please tell me any quick fix for this?

Regards Shail

sjaeckel commented 6 years ago

Can you please give more details about the issue? Such as the compiler used, the architecture to build for and building on and the version of the library.

shaildev123 commented 6 years ago

I am using libtommath v1. 0.1 and libtomcrypt v1. 18.0

Windows compiler msvc12. 0-64 Architecture. x64

On Jan 4, 2018 7:33 PM, "Steffen Jaeckel" notifications@github.com wrote:

Can you please give more details about the issue? Such as the compiler used, the architecture to build for and building on and the version of the library.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/libtom/libtommath/issues/99#issuecomment-355289604, or mute the thread https://github.com/notifications/unsubscribe-auth/ATN0l9O0LNlB1aWZN8t-ly5qaBKBici3ks5tHNoqgaJpZM4RO2UF .

sjaeckel commented 6 years ago

As found out here msvc has no support for 128-bit integer types and therefore you have to define MP_32BIT. The latest develop branch still needs to be released, but there are fixes for even more issues on msvc in #91 So please use the sources from the latest develop branch instead of the last release or apply the changes of #91 to your sources.