When linking a program with Haskell Code (also the main program), and interfacing to C functions (a lib*.a C++ application library is also combined), the following error occurs:
c:/ghc/ghc-6.0/libHSrts.a(Main.o)(.text+0x86):Main.c: undefined reference to `__stginit_Main' c:/ghc/ghc-6.0/libHSrts.a(Main.o)(.text+0x9b):Main.c: undefined reference to `Main_zdmain_closure' In the contrary, the error does not occur when linking a few functions to the Haskell Main only. Comments welcome ! H. Groh <<Groh, Hans.vcf>>
Groh, Hans.vcf
Description: Binary data