On 12/30/06, Grady Lemoine <[EMAIL PROTECTED]> wrote:
I tried compiling, but I got a linker error:
/usr/lib/ghc-6.4.2/libHSrts.a(Main.o): In function `main':
(.text+0x2): undefined reference to `__stginit_ZCMain'
/usr/lib/ghc-6.4.2/libHSrts.a(Main.o): In function `main':
(.text+0x16): undefined reference to `ZCMain_main_closure'
collect2: ld returned 1 exit status
You need to either define a "main" function in your module (e.g.,
"main = putStrLn "Hello world!") or add -c to your compile flags.
Cheers,
Kirsten
--
Kirsten Chevalier* [EMAIL PROTECTED] *Often in error, never in doubt
"I wanna live for life and no other / cause I don't ever wanna be like my mother
I wanna learn to walk on the water / cause I don't wanna be like my father"
-- Noe Venable
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe