Errors from Haskell, C/C++ Objects Linkage

Groh, Hans groh at
Mon Sep 1 06:19:27 EDT 2003

When linking a program with Haskell Code (also the main program),
and interfacing to C functions (a lib*.a C++ application library is also
the following error occurs:

c:/ghc/ghc-6.0/libHSrts.a(Main.o)(.text+0x86):Main.c: undefined reference to
c:/ghc/ghc-6.0/libHSrts.a(Main.o)(.text+0x9b):Main.c: undefined reference to

In the contrary, the error does not occur when linking a few functions to
Haskell Main only.

Comments welcome !
H. Groh

 <<Groh, Hans.vcf>> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Groh, Hans.vcf
Type: application/octet-stream
Size: 116 bytes
Desc: not available
Url :

More information about the FFI mailing list