GHC Installation Location

Simon Marlow simonmar@microsoft.com
Thu, 25 Oct 2001 12:26:27 +0100


> At 2001-10-25 03:01, Simon Marlow wrote:
>=20
> >I've wondered at various times in the past whether there=20
> ought to be a
> >link from /usr/local/includes/ghc to=20
> /usr/local/lib/ghc-5.02/includes.
>=20
> Won't help, my GHC is installed at /usr/lib/ghc-5.02/,=20
> exactly where the=20
> Debian package put it. And now that location is hard-coded in=20
> my Makefile.
>=20
> >But the usual way around this problem is to use 'ghc' as=20
> your C compiler
> >- then the -I flag gets injected automatically.
>=20
> GHC didn't seem to want to compile my .cpp file -- instead it=20
> quietly and=20
> successfully did nothing.

Yes, I guess GHC should really understand C++ file suffixes.

> Also I had to do this:
>=20
> extern "C" {
> #include "Rts.h"
> }

Thanks, I'll look into fixing that.

Cheers,
	Simon