[Haskell-cafe] GHC and MinGW

José Romildo Malaquias j.romildo at gmail.com
Sat Feb 12 16:12:22 CET 2011


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/


More information about the Haskell-Cafe mailing list