Linking with object files
Simon Marlow
simonmar@microsoft.com
Thu, 9 Jan 2003 10:28:06 -0000
> On Wednesday 08 January 2003 5:00 pm, Simon Marlow wrote:
> > What command line are you using? Here's what I did:
> >
> > ~/scratch > cat >foo.c
> > ~/scratch > gcc -c foo.c
> > ~/scratch > ghc --make hello.hs foo.o
> > ghc-5.04.2: chasing modules from: hello.hs
> > Skipping Main ( hello.hs, ./hello.o )
> > ghc: linking ...
> > ~/scratch >
>=20
> The exact command line I'm using is..
> ghc --make -fglasgow-exts -Wall -o Main.exe Main.hs Fill.o Render.o
> which gives..
> ghc-5.04.2: chasing modules from: Main.hs,Fill.o,Render.o
> ghc-5.04.2: can't find module `Fill.o' (while processing "Fill.o")
>=20
> But playing about a bit, I found the solution. It doesn't like
> upper case object file names. Not sure if that's by design or an
> oversight. I've changed them to lower case and it works fine now.
Eek! That's a bug, thanks!
Cheers,
Simon