location of HsFFI.h?

Alastair Reid alastair at reid-consulting-uk.ltd.uk
Wed Oct 30 04:38:59 EST 2002


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 at reid-consulting-uk.ltd.uk  
Reid Consulting (UK) Limited  http://www.reid-consulting-uk.ltd.uk/alastair/



More information about the FFI mailing list