Cross compiling from Linux to windows?

Hi all, I've googled for this but haven't really found an answer yet. Is it possible to build (or better yet download) a GHC compiler that runs on Linux and generates windows binaries? I already use the MinGW C compiler to generate windows binaries from C code and I run my test suite under WINE. This has been working very well for me for some time and now I'd like to do the same for Haskell code. Cheers, Erik -- ----------------------------------------------------------------- Erik de Castro Lopo ----------------------------------------------------------------- Those who do not understand Unix are condemned to reinvent it, poorly. -- Henry Spencer

On Mon, Dec 29, 2008 at 10:31 AM, Erik de Castro Lopo
Hi all,
I've googled for this but haven't really found an answer yet. Is it possible to build (or better yet download) a GHC compiler that runs on Linux and generates windows binaries?
I already use the MinGW C compiler to generate windows binaries from C code and I run my test suite under WINE. This has been working very well for me for some time and now I'd like to do the same for Haskell code.
Cheers, Erik
Hi Erik See http://haskell.org/haskellwiki/GHC_under_Wine -Jeff

Jeff Zaroyko wrote:
Hi Erik
Thanks Jeff, that works. Its not quite as convenient as a cross-compiler but will definitely do for now. Cheers, Erik -- ----------------------------------------------------------------- Erik de Castro Lopo ----------------------------------------------------------------- "Two hands working can do more than a thousand clasped in prayer." -- anonymous

Hello Erik, Monday, December 29, 2008, 2:31:40 AM, you wrote: ghc doesn't support cross-compilation
I've googled for this but haven't really found an answer yet. Is it possible to build (or better yet download) a GHC compiler that runs on Linux and generates windows binaries?
I already use the MinGW C compiler to generate windows binaries from C code and I run my test suite under WINE. This has been working very well for me for some time and now I'd like to do the same for Haskell code.
Cheers, Erik
-- Best regards, Bulat mailto:Bulat.Ziganshin@gmail.com
participants (3)
-
Bulat Ziganshin
-
Erik de Castro Lopo
-
Jeff Zaroyko