RE: location of HsFFI.h?

2002-10-30 Thread Simon Marlow
I was wondering whether there was any standard way to find HsFFI.h? I can hardcode it into my makefiles for my own projects, but when i distribute code, I end up having to add -I lines for every possible location of it, usually multiplied by every compiler version it supports since that is

Re: location of HsFFI.h?

2002-10-30 Thread Michael Weber
On Wed, Oct 30, 2002 at 09:12:01AM -, 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@stargate:~$ ghc

Re: location of HsFFI.h?

2002-10-30 Thread Alastair Reid
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

RE: location of HsFFI.h?

2002-10-30 Thread Simon Marlow
On Wed, Oct 30, 2002 at 09:12:01AM -, 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@stargate:~$ ghc

location of HsFFI.h?

2002-10-29 Thread John Meacham
I was wondering whether there was any standard way to find HsFFI.h? I can hardcode it into my makefiles for my own projects, but when i distribute code, I end up having to add -I lines for every possible location of it, usually multiplied by every compiler version it supports since that is often