linking ghc object files with mingw-g++

Koen Claessen koen@cs.chalmers.se
Wed, 28 May 2003 08:16:45 +0200 (MET DST)


 | I'm trying to link ghc object files with mingw's
 | g++/ld...

We have used the g++-2 compiler that you can get with Cygwin
and it seems to work fine. (mingw-g++ and the normal g++ did
not work for us.)

Another hint: maybe you should give "-lstdc++" as a flag to
the final linking fase.

A final hint: I have heard rumours of people changing the
linker that GHC uses to be g++'s linker, maybe that helps in
your case. Apparently, some C++ code requires special
treatment at linking time, something that normal ld does not
do.

/Koen