libgmp-10.dll is missing

Viewed 94348

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<iostream>

using namespace std;

int main()
{
    cout << "Hello World" << endl;
    return 0;
}

I get the error that "The program can't start because libgmp-10.dll is missing from your computer."

10 Answers

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

Related