30 Oct
2002
30 Oct
'02
5:38 p.m.
John:
I was wondering whether there was any standard way to find HsFFI.h?
Simon:
If you're using GHC, the trick is to use GHC to compile your C code too because it adds the appropriate -I flag to the gcc command line.
And if using Hugs (forthcoming release), use ffihugs to compile your C code: Foo.so: Foo.hs foo.c bar.o ffihugs +G Foo.hs -L"foo.c" -L"bar.o" -L"-lm" You'll also find the file in ${installdir}/lib/hugs/include/HsFFI.h -- Alastair Reid alastair@reid-consulting-uk.ltd.uk Reid Consulting (UK) Limited http://www.reid-consulting-uk.ltd.uk/alastair/