linking problems after switching from GHC5 to GHC6

Volker Wysk post at volker-wysk.de
Fri Jan 30 17:02:16 EST 2004


Hi

I've put together a minimal program which reproduces the problem. Save the
three attachments in a new directroy and type "make". I'ts just as
described earlier. The trivial program compiles with GHC5, but not GHC6.

It's all on a Linux-Debian box.

bye,
V.W.
--
Volker Wysk <post at volker-wysk.de>
http://www.volker-wysk.de
-------------- next part --------------
module A where

a = putStrLn "hallo"
-------------- next part --------------
import A

main = a
-------------- next part --------------
#HC = /usr/lib/ghc-5.04.2/bin/ghc-5.04.2
HC = /usr/lib/ghc-6.2/bin/ghc-6.2

0 : Main

A.o : A.hs
Main.o : Main.hs A.hi

%.o : %.hs
	$(HC) -c -o $@ $<

%.hi : %.o
	@:

Main : Main.o liba.a
	$(HC) -o $@ $^

liba.a : A.o
	ar cqs $@ $^

clean :
	rm -f *.o *.hi *~ liba.a Main



More information about the Glasgow-haskell-users mailing list