
21 Dec
2008
21 Dec
'08
3:06 a.m.
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