Does anyone have a working GMP + MINGW installation?
I've spent days and days trying to install GMP library on my MINGW windows installation. I completed the installation process of both dozens of times, followed any single guide on the internet but I couldn't manage to get things working. So, I'm here desperate to ask someone to help me brute-force this problem: does anyone have a WORKING mingw (32 bit) installation with GMP succesfully built and working on it? Could someone zip it and send it to me somehow? Like uploading it on mediafire/megaupload and sharing the link? I know this is not very elegant, but I'm really desperate. I'd just need a working installation of GMP on MINGW, possibly compiling c开发者_如何学C++ sources so that I can use directly operator overloading, but C version would be ok as well.
Please someone help, I can't complete my work just because of this bloody library
Thank you again
Matteo
To install GMP on mingw32 (with mingw reinstallation for updating, because mingw-get can't update):
Delete (move to another dir; archive or do other backup) your mingw32 installation.
Reinstall mingw32 from site (it will be newer).
Do a commands from msys:
mingw-get install mingw32-gmp
mingw-get install mingw32-gmp-dev
Enjoy.
PS: if it doesn't works; do
mingw-get install mingw32-gmp-dev
mingw-get install mingw32-libgmp
Find the downloaded files with *.lzma extension (they will be both in mingw subdirs and in Temporary Internet Files of IE browser)
Unpack them manually to main mingw dir.
The C++ wrapper works perfectly here. I have the following files, I believe I downloaded them from the MinGW site, but I am not completely sure:
gmp-5.0.1-1-mingw32-dev.tar
libgmp-5.0.1-1-mingw32-dll-10.tar
libgmpxx-5.0.1-1-mingw32-dll-4.tar
You need to copy the headers, libraries and dlls to their respective directories, and add the -lgmp -lgmpxx
parameters to the compiler.
Does anyone have a working GMP + MINGW installation? [...] Could someone zip it and send it to me somehow?
Just came across this question, and even though it dates back to 9 years ago, the following links might help.
Some weeks ago I built GMP for mingw32 so I can use it on my Win2000 laptop.
The archives are named gmp_2020-*_mingw32*.zip
.
https://sourceforge.net/projects/mobilechessboar/files/avr-gcc%20snapshots%20%28Win32%29/
Just unzip and move to a location at your preference. It's cross-compiled on x86_64 which is the way I compile software for my old laptop.
Apart from GMP, the zip also contains MPFR, MPC, GSL and GMP-ECM.
I had some trouble with undefined references to print functions due to ms / mingw clash resp. ambiguity. The recent build tries to use the C99 compliant (mingw) versions. In case you encounter similar problems, or in case you prefer the ms versions, the following hack might help you:
https://stackoverflow.com/a/60380005/1556746
As GMP-ECM always enables SSE2 no matter for which host it is configured, there is a nosse2
build to please old[tm] hardware.
精彩评论