Does anyone have a working installation of GMP + MINGW?

I spent days and days trying to install the GMP library when installing Windows MINGW. I completed the installation process dozens of times, as well as in any other manual on the Internet, but I could not get everything to work. So, here I am desperately asking someone to help me deal with this problem: does anyone have a WORKING mingw installation (32-bit version) with GMP successfully created and working on it? Can someone fasten it and send it to me somehow? How to upload it to mediafire / megaupload and share the link? I know this is not very elegant, but I am really in despair. I just need a working GMP installation on MINGW, maybe compiling C ++ sources so that I can directly use operator overloading, but the C version will be fine too.

Please help, I can’t finish my work just because of this bloody library.

Thanks again

Matteo

+6
source share
2 answers

To install GMP on mingw32 (with reinstalling mingw to upgrade, since mingw-get cannot upgrade):

Delete (go to another archive, do another backup), install mingw32.

Reinstall mingw32 from the site (it will be newer).

Run commands from msys:

mingw-get install mingw32-gmp mingw-get install mingw32-gmp-dev 

Enjoy.

PS: if it does not work; do

  mingw-get install mingw32-gmp-dev mingw-get install mingw32-libgmp 

Find downloaded files with * .lzma extension (they will be in both mingw subfields and IE browser temporary Internet files)

Unzip them manually into the main mingw file.

+8
source

C ++ wrapper works great here. I have the following files, I believe that I downloaded them from the MinGW website, but I'm not quite 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 the appropriate directories and add the -lgmp -lgmpxx to the compiler.

0
source

Source: https://habr.com/ru/post/896262/


All Articles