Unable to compile with MinGW - libmpc-2.dll is missing

I installed MinGW on Windows Vista, so I can use gcc , but it does not work.

When I try to compile a .c file, for example gcc hello.c -o hello.exe , I get an error (translation):

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

How can i fix this?

+3
source share
3 answers

Copy this file to the directory in which your gcc executable can be found (one of them is bin). http://www38.zippyshare.com/v/95754574/file.html

The strange thing is that my MinGW mine installation correctly enabled this dll.

+2
source

I had the same problem. Installing the mpc package using mingw-get resolved it for me.

  • Open a command prompt window
  • Go to the MinGW \ bin directory: for example. cd MinGW\bin
  • run: mingw-get install mpc
+6
source

I have the same problem today in Windows 7. The whole DLL was in the folder with MinGW. Only copying the DLL to the SYSTEM32 folder allowed this

+3
source

All Articles