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
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe