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?
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.
I had the same problem. Installing the mpc package with mingw-get
solved it for me.
- Open a command line window
- Go to your MinGW\bin directory: e.g.
cd MinGW\bin
- execute:
mingw-get install mpc
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