问题
What arbitrary-precision integers (and or rationals) library are there for compilers running on Microsoft Windows, and which would you recommend?
Please state license type / cost, supported compilers (i.e. GCC and or VC++) for the library.
回答1:
GMP.
LGPL. Standard download from official website is designed for GCC. VC++ port is available from here.
回答2:
I have not used it, so I'm pointing you here blind:
LibTomMath by Tom St Denis: http://libtom.org/
Public Domain license. Website mentions that the library builds out of the box with GCC 2.95 [and up] as well as Visual C++ v6.00 [with SP5] without configuration.
A companion book is available: http://www.amazon.com/dp/1597491128
回答3:
OpenSSL BN type. BSD-style license, pretty sure it's available for windows.
回答4:
Best bignum library to solve Project Euler problems in C++ ?
来源:https://stackoverflow.com/questions/214706/c-or-c-bigint-library-on-microsoft-windows