linking ghc object files with mingw-g++

johago@web.de johago@web.de
Wed, 28 May 2003 10:37:03 +0200


Good morning!

Thanks very much for your help... Compiling everything with cygwin c++-2 /
gcc-2 works fine for me.

>
>  | 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.


Johannes
johago@web.de