Can't compile with MinGW - libmpc-2.dll is missing

别等时光非礼了梦想. 提交于 2019-12-01 06:37:47

问题


I have installed MinGW in Windows Vista, so I can use gcc but it doesn't work.

When I try to compile a .c file like gcc hello.c -o hello.exe I get an error (translated):

cc1.exe: could not find libmpc-2.dll

How can I fix this?


回答1:


Copy this file into the directory where your gcc executable can be found (the one named bin). http://www38.zippyshare.com/v/95754574/file.html

The strange thing is that the MinGW installation of mine included this dll correctly.




回答2:


I had the same problem. Installing the mpc package with mingw-get solved it for me.

  1. Open a command line window
  2. Go to your MinGW\bin directory: e.g. cd MinGW\bin
  3. execute: mingw-get install mpc



回答3:


I have today same problem in Windows 7. All DLL's was in folder with MinGW. Only copying DLL's in SYSTEM32 folder solved this



来源:https://stackoverflow.com/questions/5127446/cant-compile-with-mingw-libmpc-2-dll-is-missing

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!