location of HsFFI.h?
Simon Marlow
simonmar at microsoft.com
Wed Oct 30 05:54:46 EST 2002
> On Wed, Oct 30, 2002 at 09:12:01AM -0000, Simon Marlow wrote:
> > If this isn't possible, then you can extract the
> information from the
> > output of 'ghc -v'. The relevant directory is in the
> include_dirs field
> > of the rts package.
>
> michaelw at stargate:~$ ghc --print-libdir
> /usr/lib/ghc-5.04.2
> michaelw at stargate:~$
Thanks, I forgot I'd added that flag :-)
> so:
>
> GHC_INCLUDES := $(shell ghc --print-libdir)/include
>
> might help.
More correctly, the directory relative to $libdir is found by:
$ ghc-pkg --show-package rts --field include_dirs
$libdir/include
Cheers,
Simon
More information about the FFI
mailing list