libgmp-10.dll is missing

前端 未结 10 1184
甜味超标
甜味超标 2020-12-02 18:02

I recently installed MinGW on my 64-bit Windows 7 computer and when I attempt to compile the most basic of c++ programs, for example

#include         


        
相关标签:
10条回答
  • 2020-12-02 18:40

    I came upon this question when I started CodeBlocks and then clicked on my project. After the project notes appeared and I pressed OK, the error appeared:

    "System Error: The program can't start because libgmp-10.dll is missing from your computer. Please reinstall the application to fix this problem."

    I presse OK a bunch of times and then was able to do normal compile, link, etc. but that error showed up everytime I started C::B and went to the project. Then I noticed that the LLVM Clang compiler was my default compiler in the compiler settings, though GCC was set as the compiler specific to the project I was working on.

    The solution was to set the compiler in the compiler settings to GCC (mingw) and also set it as the default compiler. After that this system error stopped popping up every time I started the project.

    The reason I posted this answer is because it answers the OP's question and other people with the same question may have a similar reason for this irritation, and my personal experience in this matter may prove useful to those people.

    0 讨论(0)
  • 2020-12-02 18:42

    Have you tried adding C:\MinGW\bin as a System variable Path (not PATH) in Settings->System Properties->Environment Variables?

    I saw this solution on this page: Missing libgmp-10.dll

    0 讨论(0)
  • 2020-12-02 18:47

    Go to the mingw download page and browse the following directories:

    MinGW / Base / gmp / gmp-5.0.1-1

    Currently you end up with the following link:
    http://sourceforge.net/projects/mingw/files/MinGW/Base/gmp/gmp-5.0.1-1/libgmp-5.0.1-1-mingw32-dll-10.tar.lzma/download
    and it contains the needed file.

    I know there are automated methods for installing mingw gcc, but when one uses single mingw packages, then gmp is one of obligatory downloads.

    0 讨论(0)
  • 2020-12-02 18:47

    Just search google for the dll file and download it. Then paste it into the folder in this path

    C:\MinGW\libexec\gcc\mingw32\9.2.0

    0 讨论(0)
  • 2020-12-02 18:50

    In just installed MinGW using the mingw-get-setup.exe v0.6.2beta-20131004-1 installer. Even though during the install I selected the gcc package, the installer didn't include the "mingw32-gmp" package, which includes libgmp-10.dll. I had to rerun the installer, chose the "Reinstall" option, and manually select the "mingw32-gmp dev" package.

    0 讨论(0)
  • 2020-12-02 18:50

    A very simple fix to this problem of having missing driver file/s is to select and copy all the dll files from C:\MinGW\Bin and paste them into your C:\MyPrograms or whereever else your folder for created c++ (.cpp) files are being located.

    0 讨论(0)
提交回复
热议问题