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

2008-12-22 Thread Serge LE HUITOUZE
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" >

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

2008-12-21 Thread kyra
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 translat

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

2008-12-20 Thread Serge LE HUITOUZE
Hi there! I'm trying to FFI-bind a MS Visual dll (under Windows2000) to a Haskell program. I have this little C(++) dll: *** FILE inc.h: START *** extern "C" { int pten(int i); } *** FILE inc.h: END *** *** FILE inc.cpp: START *** #include "inc.h" int pten(int i) {