A small tip outside my expertise, enjoy.
For building GMP (GNU Multiple Precision Arithmetic Library, http://gmplib.org) under Windows you can follow theses easy step;
– Get latest GMP .
– Create a folder to store your GMP’s library (example C:\gmp)
– Get [MinGW].
– Do a full install of MinGW. (+-400m)
– Run msys.bat from C:\MinGW\msys\1.0 if you installed in the default directory.
./configure --prefix=/c/GMP --build=x86_64-w64-mingw32 --host=x86_64-w64-mingw32 -disable-static --enable-shared. Please note there I didn’t used
--enable-cxx as the c++ module does not seem to compile well with the new GMP’s library. (It reference inttypes.h that mingw can’t find)
-Run dumpbin /exports libgmp-10.dll >libgmp-10.exports
-Edit the file libgmp-10.exports to leave there only the function name.
-Run lib /def:libgmp-10.def /out:libgmp-10.lib
and voila, you are done.
You will have a .h and a .lib library that you can link to Visual Studio like a .lib.
2 thoughts on “GNU Multiple Precision Arithmetic Library 6.1.1 for Visual Studio 2015”
There is no msys folder in MinGw download you provided.
I am a novice in this field, therefore I`m completely lost. it would be nice if you create a video tutorial about how to install the gmp library in windows 64 bits.