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

kyra kyrab at mail.ru
Sun Dec 21 03:06:32 EST 2008

Serge LE HUITOUZE wrote:
> I do the following:
>> dlltool -d cproj1.def -l libcproj1.a
>> ghc --make testFFI_2.hs -optl-lcproj1 -optl-L.
> This seems fine, since it produces a "testFFI_2.exe".
> However, executing it, I get a MSWindows error box with a message
> that looks like (approximate translation): 
> "DLL (null) not found on specified path"
> At first, I didn't have the "LIBRARY" directive in the ".def" file,
> so I thought that was the reason for the "(null)" appearing in the
> message. But adding said directive didn't change anything...
dlltool -d cproj1.def -l libcproj1.a -D cproj1.dll

More information about the Haskell-Cafe mailing list