[Haskell-cafe] GHC and MinGW

Henk-Jan van Tuyl hjgtuyl at chello.nl
Sat Feb 12 20:45:09 CET 2011

On Sat, 12 Feb 2011 16:12:22 +0100, José Romildo Malaquias  
<j.romildo at gmail.com> wrote:

> Hello.
> How do I make ghc use my installation of MinGW on Windows? I have
> ghc-7.0.1 installed and the latest MinGW packages. I want ghc to
> automatically find libraries installed by the MinGW installer.
> Currently I am getting the error with my application:
> Linking Gui.exe ...
> C:\Program  
> Files\Haskell\iconv-\ghc-7.0.1/libHSiconv-  
> undefined reference to `libiconv_open'
> where libiconv has been installed with the command
> mingw-get install mingw32-libiconv
> and the library is available at c:/devel/MinGW/lib/

You have to define some environment variables, see:

Henk-Jan van Tuyl


More information about the Haskell-Cafe mailing list