[Haskell-cafe] Win32 help please

Stefan O'Rear stefanor at cox.net
Sun Feb 4 12:59:27 EST 2007


On Sun, Feb 04, 2007 at 10:42:23PM +1100, John Ky wrote:
> # hsc2hs mywin32.hsc
> # ghc -fffi mywin32.hs
> C:/system/ghc/ghc-6.6/libHSrts.a(Main.o):Main.c:(.text+0x1b): undefined
> reference to `__stginit_ZCMain'
> C:/system/ghc/ghc-6.6/libHSrts.a(Main.o):Main.c:(.text+0x3f): undefined
> reference to `ZCMain_main_closure'
> collect2: ld returned 1 exit status
> 
> What am I missing?

A function named main.


More information about the Haskell-Cafe mailing list