SimonLR
SimonLR

Reputation: 37

MinGW_w64 missing dll's

I am trying to run a C compiler with Cython in a 64-bit Windows 7 platform.

After having various problems with the C compilers from Visual studio and MinGW32, I tried to install MinGW_w64. I did the following steps :

-I downloaded and extracted winbuilds from http://mingw-w64.org/doku.php/download/win-builds, and I selected the Base GCC package with C support.

-I added C:\PATH_TO_WINBUILDS and C:\PATH_TO_WINBUILDS\bin in the PATH Windows environment variable.

-I wrote helloworld.c, a very simple C program :

#include<stdio.h>

main()
{
    printf("Hello World");
}

-Then in cmd I wrote:

gcc helloworld.c -o helloworld.exe

And a dialog box pops out with the following error message :

Impossible to start program because libiconv.dll is missing on your computer. Reinstall program to correct problem.

The dll file does not appear in the lib folder of MinGW_w64. I tried to copy libiconv.a and libiconv.dll.a from the MinGW32 lib folder to the lib folder of MinGW_64, but still no luck.

Any ideas?

Upvotes: 0

Views: 2998

Answers (2)

SimonLR
SimonLR

Reputation: 37

I was able to fix the problem by downloading another version on the package on SourceForge. Thanks!

Upvotes: 0

D&#250;thomhas
D&#250;thomhas

Reputation: 10048

You need the DLL file, not the .a link library files. libiconv.dll should exist somewhere in the bin directory. If it is not there, you’ll need to get it from the internet or compile it yourself. Alternatively you could just link statically to the iconv library.

Once you find the DLL, make sure it is in one of the following locations: * the %PATH% * the appropriate C:\Windows\system32 or C:\Windows\SysWOW64 directory * (preferably) next to your executable

Upvotes: 1

Related Questions