AW: Errors from Haskell, C/C++ Objects Linkage

"Groh, Hans" <[email protected]>
Newsgroups gmane.comp.lang.haskell.ffi,gmane.comp.lang.haskell.glasgow.bugs
Message-ID <B067575B9798D511BB8E00104B4400DD4B1725@SRVA01>
> -----Ursprüngliche Nachricht-----
> Von: Simon Marlow [mailto:[email protected]]
> Gesendet: Mittwoch, 3. September 2003 13:05
> An: Groh, Hans; [email protected]
> Cc: [email protected]
> Betreff: RE: Errors from Haskell, C/C++ Objects Linkage
> 
> 
>  
> > 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.
> 
> Could you describe in more detail exactly what you're doing?  
> We need to
> know: 
> 
>  - what version of GHC
>  - what platform
>  - the exact command lines you used
>  - if possible, a copy of the code so we can reproduce the problem

The problem has been solved now. I just wanted to remove the
inquiry from the newsgroup list.
The build was originally with cygwin tools and libraries, on the
C/C++ side, which caused big trouble. Now MinGW is used, and 
everything does fit together.

Thank you for your attention
Hans

> 
> Cheers,
> 	Simon
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.