
Thanks; looks like I overlooked that patch. One workaround is to use '-lfoo' rather than 'foo.a' (not forgetting to add the lib directory with -L<dir> if necessary). Cheers, Simon
-----Original Message----- From: glasgow-haskell-users-bounces@haskell.org [mailto:glasgow-haskell-users-bounces@haskell.org] On Behalf Of Sigbjorn Finne Sent: 30 January 2004 16:39 To: glasgow-haskell-users@haskell.org Subject: Re: linking problems after switching from GHC5 to GHC6
This is a 6.x bug; I fixed it in HEAD a while back,
http://haskell.org/pipermail/cvs-ghc/2003-October/018991.html
but the change wasn't merged for some reason.
--sigbjorn
----- Original Message ----- From: "Sven Panne"
To: "Volker Wysk" Cc: Sent: Friday, January 30, 2004 08:28 Subject: Re: linking problems after switching from GHC5 to GHC6 I've put together a minimal program which reproduces the
Volker Wysk wrote: 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. [...]
Hmmm, it looks like GHC is reversing the order of files in the linking step. Mentioning liba.a *before* Main.o in the linking step is a workaround...
Cheers, S.
_______________________________________________ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
_______________________________________________ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users