GHC Command Line Help
Thu, 21 Dec 2000 17:41:25 +0100
"Steinitz, Dominic J" wrote:
> I was experimenting with using FiniteMap. The program compiled ok but the linker gave me the following error. What do I need to include on the command line or have I not installed ghc correctly?
> [dom@lhrtba8fd85 FiniteMap]$ /usr/bin/ghc -o main test.o -L/usr/lib/ghc-4.08.1 -
> lHSlang -lHSdata
> /usr/lib/ghc-4.08.1/libHSdata.a(FiniteMap__1.o): In function `__init_FiniteMap':
> FiniteMap__1.o(.text+0x16): undefined reference to `__init_GlaExts'
> collect2: ld returned 1 exit status
I suggest using
/usr/bin/ghc -o main test.o -package data -package lang -fglasgow-exts
or something similar (rather than trying to name the libraries directly).