Install GMP with Windows
Sisyphus
sisyphus1 at optusnet.com.au
Wed Jul 4 00:51:59 CEST 2012
----- Original Message -----
From: "Randy Eastland"
> Can anyone PLEASE tell me how to compile GMP on a windows environment?
There's documentation relating to this at:
http://gmplib.org/manual/Notes-for-Particular-Systems.html#Notes-for-Particular-Systems
To build with a mingw port of gcc, start an instance of the msys shell by
executing msys.bat (which, for me, is located in C:/MinGW/msys/1.0).
Then, in that msys shell, 'cd' to the top level gmp source folder and run:
./configure --prefix=C:/wherever
or, if you want a shared gmp library (dll), not a static library, instead
run:
./configure --prefix=C:/wherever --disable-static --enable-shared.
Then run, in order:
make
make check
make install
Running 'make install' will install the library into C:/wherever. If you
don't provide a '--prefix' argument to configure 'make install' will install
the library into what the msys shell considers to be /usr/local - which, for
me, is C:/MinGW/msys/1.0/local.
Cheers,
Rob
More information about the gmp-discuss
mailing list