error in the hdirect installation
Hi people, I have just downloaded the fptools with the purpose of use the hdirect. But when I execute a "make boot; make" in the hdirect directory in the middle of the compile process I get the following error: ... ------------------------------------------------------------------------ ==fptools== make all - --unix -r; in /cygdrive/c/haskell/fptools/hdirect/comlib ------------------------------------------------------------------------ /cygdrive/c/ghc/ghc-6.0.1/bin/ghc -H16m -O -fvia-C -package-name com -package lang -I../lib -DCOM -fglasgow-exts -fvia-C -static -c TypeLib.hs -o TypeLib.o - ohi TypeLib.hi TypeLib.hs:2291: Couldn't match `IUnknown i0' against `()' Expected type: Ptr (IID (IUnknown i0)) Inferred type: Ptr (IID ()) In the fourth argument of `prim_TypeLib_createInstance', namely `riid' In a lambda abstraction: \ riid -> prim_TypeLib_createInstance methPtr iptr pUnkOuter riid ppvObj make[1]: *** [TypeLib.o] Error 1 make: *** [all] Error 1 The steps that I used were: -> "autoreconf" in the fptools directory -> "./configure" in the fptools directory -> "make boot; make" in the alex directory -> "make boot; make" in the happy directory -> "make boot; make" in the hdirect directoty Can anyone help me? I'm just following a tutorial in: http://www.cin.ufpe.br/~haskell/vhs/howto-tarball.html cheers, ------------------------------------------------- | Mauro La-Salette C. L. de Araújo | | Graduando em Ciências da Computação CIn-UFPE | | Bolsista do grupo PET CIn - UFPE | | mscla@cin.ufpe.br | | www.cin.ufpe.br/~mscla | ------------------------------------------------- "If this is true, building software will always be hard. There is inherently no silver bullet." (F.P.Brooks)
Just the same error in the 'make lib' stage with the same (ghc 6.0.1) compiler against today's (Dec 8, 2003) cvs hdirect. Also it seems hdirect 0.19 doesn't compile with ghc 6.0.1 out of the box. So what is the best way to get working hdirect with ghc 6.0.1 ? Regards, Kyra ----- Original Message ----- From: "Mauro La Salete Costa Lima de Araujo" <mscla@cin.ufpe.br> To: <haskell@haskell.org> Sent: Sunday, December 07, 2003 5:03 PM Subject: error in the hdirect installation <skip> in /cygdrive/c/haskell/fptools/hdirect/comlib ------------------------------------------------------------------------ /cygdrive/c/ghc/ghc-6.0.1/bin/ghc -H16m -O -fvia-C -package-name com -package lang -I../lib -DCOM -fglasgow-exts -fvia-C -static -c TypeLib.hs -o TypeLib.o - ohi TypeLib.hi TypeLib.hs:2291: Couldn't match `IUnknown i0' against `()' Expected type: Ptr (IID (IUnknown i0)) Inferred type: Ptr (IID ()) In the fourth argument of `prim_TypeLib_createInstance', namely `riid' In a lambda abstraction: \ riid -> prim_TypeLib_createInstance methPtr iptr pUnkOuter riid ppvObj make[1]: *** [TypeLib.o] Error 1 make: *** [all] Error 1 <skip>
Now with the freshest and greatest hdirect (TypeLib.idl 1.2) it compiles! Thanks! Kyra ----- Original Message ----- From: "kyra" <kyrab@mail.ru> To: <haskell@haskell.org> Sent: Tuesday, December 09, 2003 1:56 AM Subject: Re: error in the hdirect installation
Just the same error in the 'make lib' stage with the same (ghc 6.0.1) compiler against today's (Dec 8, 2003) cvs hdirect.
Also it seems hdirect 0.19 doesn't compile with ghc 6.0.1 out of the box.
So what is the best way to get working hdirect with ghc 6.0.1 ?
Regards, Kyra
----- Original Message ----- From: "kyra" <kyrab@mail.ru> To: <haskell@haskell.org> Sent: Tuesday, December 09, 2003 3:19 AM Subject: Re: error in the hdirect installation
Now with the freshest and greatest hdirect (TypeLib.idl 1.2) it compiles!
Thanks!
Kyra
but 'ihc.exe --tlb' generated code seems to be inconsistent with comlib ... :(
After all, current cvs ihc doesn't generate proper context declarations. For example, ihc --tlb ... <third party com server dll> generates (incorrectly?) something like: getStartDate :: TimeSheet a1 -> Prelude.IO a0 while hdirect 0.19 ihc generates (correctly?): getStartDate :: (Automation.Variant a0) => TimeSheet a1 -> Prelude.IO a0 ghc 6.0.1 can compile the latter but not the former, complaining: Could not deduce (Automation.Variant a0) from the context () arising from use of `Automation.outVariant' at ... Probable fix: Add (Automation.Variant a0) to the type signature(s) for `getStartDate' Not to mention this error is pervasive in the current cvs ihc generated code.
participants (2)
-
kyra -
Mauro La Salete Costa Lima de Araujo