"The program can;t start because libgmp-10.dll is missing from your computer. Try reinstalling the program to fix this problem."
I did the following:
1) added C:\MinGW\bin\ to path
2) use full path on the command line code
3) restarted the computer
4) reinstall MinGW
5) checked and confirm that I have the file libgmp-10.dll in C:\MinGW\bin\
but none of these works!
I exhausted all the possible solutions but none of them work. Wonder if someone could help!
I would recommend compiling with TDM-GCC instead. http://tdm-gcc.tdragon.net/
You do not even need to restart your computer :) Just make sure that MinGW is removed from your path before installing TDM-GCC.
Alternatively, you could copy libgmp-10.dll and put it beside helloworld.exe
Because that is the same folder libgmp-10.dll is in. You can also copy that dll file and put it next to helloworld.exe.
Edit: I still recommend using TDM-GCC as I pointed out in my other post. TDM-GCC is based off of MinGW, but it uses sensible defaults that prevent needing to copy compiler related dll files.