Mike Thomas [EMAIL PROTECTED] writes:
>
> After compiling the HDirect 0.17 sources using GHC 4.08.2 and the latest
> Cygwin internet distribution (some small mods made to deal with Cygwin
> B20isms in the C source code):
>
 ....
>
> dlltool --output-lib liburlmon.a --def urlmon.def  --dllname urlmon.dll -k
.> ./../src/ihc     -c HtmlDialog.idl -o HtmlDialog.hs
>  //c/ghc/ghc-4.08.2/bin/ghc -syslib com -fglasgow-exts -L. -lurlmon    -c
> HtmlDialog.hs -o HtmlDialog.o -osuf o
>
> panic! (the `impossible' happened):
>         getRegister(x86)
>     (Prim {-__stdcall-}__dyn_ccall_GC "" Temp(B0StgAddr) Temp(B1StgAddr)
> Temp(B2StgAddr) Temp(B3StgAddr) Temp(B4StgAddr) Temp(B5StgAddr))
>

Hi,

the NCG isn't quite up to handling the FFI, so you need to add -fvia-C to
HC_OPTS in the Makefile (Oh, and -static too, just to be sure.)

This and a couple of other details surrounding the examples/ directory
was something I didn't get around to doing for 0.17. Hope to have this
fixed for 0.18, but in the meantime, attached is a missing little header
file from examples/html-dialog/, which you'll need to successfully
build that example.

hth
--sigbjorn



HtmlDialog.h

Reply via email to