C语言 尝试在 Windows 下编译 gnu 目标 c 时缺少 libgmp-10.dll
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/6719307/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
libgmp-10.dll missing when trying to compile gnu objective c under windows
提问by user310291
I installed GNUStep http://www.gnustep.org/experience/Windows.htmlbut when compiling helloworld.m I got libgmp-10.dll missing.
我安装了 GNUStep http://www.gnustep.org/experience/Windows.html但是在编译 helloworld.m 时我丢失了 libgmp-10.dll。
What should I do to make it work ? (I'm on Windows 7 64 bits)
我该怎么做才能让它发挥作用?(我使用的是 Windows 7 64 位)
I have already made it work a few months ago though I think I was on Vista 32 bits then.
几个月前我已经让它工作了,尽管我认为我当时使用的是 32 位 Vista。
Update: found here
更新:在这里找到
https://rb.freedroid.org/r/1101/diff/?expand=1
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/
但是我只在 /mingw/bin/ 中找到了 libgmp-3.dll
回答by Lumi
The DLL isn't missing; it can be found in the MinGW-bindirectory. On my system:
DLL 没有丢失;它可以在 MinGW-bin目录中找到。在我的系统上:
D:\Opt\MinGW32.11.11\bin\libgmp-10.dll
The problme can easily be fixed by adding the MinGW-bindirectory to the PATH:
通过将 MinGW-bin目录添加到以下目录中,可以轻松解决该问题PATH:
set path=%path%;D:\Opt\MinGW32.11.11\bin
Now the compiler works fine.
现在编译器工作正常。
回答by phoad
I just downloaded mingw-get-inst-20110802and I got the same error as you.
我刚刚下载mingw-get-inst-20110802,我遇到了和你一样的错误。
I found the required DLL files in the specified directory though. Applying the specified solution has solved my problem.
我在指定的目录中找到了所需的 DLL 文件。应用指定的解决方案解决了我的问题。
I may suggest you to try to redownload and reinstall the MinGW..
我可能会建议您尝试重新下载并重新安装MinGW ..

