Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

libgmp-10.dll missing when trying to compile gnu objective c under windows

Tags:

c

gcc

objective-c

I installed GNUStep http://www.gnustep.org/experience/Windows.html but when compiling helloworld.m I got libgmp-10.dll missing.

What should I do to make it work ? (I'm on Windows 7 64 bits)

I have already made it work a few months ago though I think I was on Vista 32 bits then.

Update: found here

https://rb.freedroid.org/r/1101/diff/?expand=1

166 
    Nota:, if an error window opens complaining about libgmp-10.dll missing, then you used a bugged version of the MinGW installer
167 
    (some DLLs are not correctly installed). To fix the problem, just type the following commands:
168 
     cp /mingw/bin/libgmp-10.dll /mingw/libexec/gcc/mingw32/4.5.2
169 
     cp /mingw/bin/libmpc-2.dll /mingw/libexec/gcc/mingw32/4.5.2
170 
     cp /mingw/bin/libmpfr-1.dll /mingw/libexec/gcc/mingw32/4.5.2
171 
     cp /mingw/bin/libiconv-2.dll /mingw/mingw32/bin
172 
     cp /mingw/bin/libintl-8.dll /mingw/mingw32/bin

But I only found libgmp-3.dll in /mingw/bin/

like image 809
user310291 Avatar asked Jul 16 '11 18:07

user310291


2 Answers

I just downloaded mingw-get-inst-20110802 and I got the same error as you.

I found the required DLL files in the specified directory though. Applying the specified solution has solved my problem.

I may suggest you to try to redownload and reinstall the MinGW..

like image 44
phoad Avatar answered Oct 18 '22 02:10

phoad


The DLL isn't missing; it can be found in the MinGW-bin directory. On my system:

D:\Opt\MinGW32.11.11\bin\libgmp-10.dll

The problme can easily be fixed by adding the MinGW-bin directory to the PATH:

set path=%path%;D:\Opt\MinGW32.11.11\bin

Now the compiler works fine.

like image 171
Lumi Avatar answered Oct 18 '22 02:10

Lumi