errno
malcolm-ffi at cs.york.ac.uk
malcolm-ffi at cs.york.ac.uk
Tue Nov 28 11:48:11 EST 2000
> QForeign library has plenty of examples
Ok, I tried hsc2hs on one of the QForeign examples and it gave me
the following errors. Any ideas?
Regards,
Malcolm
$ ~/ghc/utils/hsc2hs/Main Glob.hsc -t ~/ghc/utils/hsc2hs/template-hsc.h
In file included from /grp/haskell/lib/ghc-4.08/includes/HsFFI.h:17,
from ~/ghc/utils/hsc2hs/template-hsc.h:1,
from Glob.hsc_make_hs.c:1,
/grp/haskell/lib/ghc-4.08/includes/StgTypes.h:45: #error GHC untested on this architecture: sizeof(unsigned int) != 4
/grp/haskell/lib/ghc-4.08/includes/StgTypes.h:65: #error GHC untested on this architecture: sizeof(void *) < 8 and no long longs.
/grp/haskell/lib/ghc-4.08/includes/StgTypes.h:82: #error GHC untested on this architecture: sizeof(void *) != 4 or 8
In file included from ~/ghc/utils/hsc2hs/template-hsc.h:1,
from Glob.hsc_make_hs.c:1,
/grp/haskell/lib/ghc-4.08/includes/HsFFI.h:77: #error GHC untested on this architecture: sizeof(void *) != 4 or 8
More information about the FFI
mailing list