Linking c++ dll with Haskell-Platform on Windows, outputs 'undefined reference'

I am a Haskell enthusiast and have got stuck upon compiling my little Haskell program on Windows. My program uses the iconv package, which in turn uses the foreign library written in c/c++. To make