[Haskell-cafe] Trouble with FFI on Windows2000...

Serge LE HUITOUZE slehuitouze at telisma.com
Mon Dec 22 04:14:22 EST 2008

Hi Kyra (I tried to email you directly, but, for some reason, my mail bounced...),
Hi Haskellers,

> > dlltool -d cproj1.def -l libcproj1.a
> > ghc --make testFFI_2.hs -optl-lcproj1 -optl-L.
> > [...]
> > This leads to an error box with message:
> >     "DLL (null) not found on specified path"
> dlltool -d cproj1.def -l libcproj1.a -D cproj1.dll

Thanks very much for this answer, short and effective (an ideal one)!

Just an additional question, just for curiosity:

Does anyone know why this "-D" option doesn't appear in the following two pages?
 - http://www.haskell.org/haskellwiki/GHC/Using_the_FFI#Setting_up_your_build_environment_.28Visual_Studio_Specific.29
 - http://www.haskell.org/haskellwiki/GHC:FAQ#GHC_on_Windows (parag.

Is this because the behavior I got is Win2K specific (hence very few people run into in 2008)?

Thanks again Kyra for your precious help.


More information about the Haskell-Cafe mailing list