linking problems after switching from GHC5 to GHC6
Simon Marlow
simonmar at microsoft.com
Wed Jan 28 13:00:36 EST 2004
> I can't link with a library any longer, after switching from ghc5 to
> ghc6.2. I've recompiled the library with the new compiler version, so
> that's not the problem.
[snip]
> ghc -o build/test0 build/test0.o -odir build
> `src/lib/hsunix-config --local --libs`
> build/test0.o(.text+0x25): In function `__stginit_Main_':
> : undefined reference to `__stginit_HsUnix_'
> build/test0.o(.text+0xec): In function `Main_main_srt':
> : undefined reference to `HsUnix_mainwrapper_closure'
> build/test0.o(.text+0x151): In function `Main_main_entry':
> : undefined reference to `HsUnix_mainwrapper_closure'
> collect2: ld returned 1 exit status
> make: *** [build/test0] Error 1
> rm build/test0.o
Strange. Could you send us the output from -v?
Cheers,
Simon
More information about the Glasgow-haskell-users
mailing list