[Haskell-cafe] Re: Windows details
Jeff Zaroyko
jeffzaroyko at gmail.com
Thu Sep 11 17:30:15 EDT 2008
Andrew Coppin <andrewcoppin <at> btinternet.com> writes:
>
> Jeff Zaroyko wrote:
> > In theory, you should be able to use mingw's windres tool to produce
> > an object file from the resource definition which you'd link with
> > the rest of your program.
> >
>
> Yes, there's a cryptic comment burried away in the GHC manual that says
> GHC itself already uses windres to embed the manifest file into the
> compiled binary file. (And sure enough, if you crawl through with a hex
> editor you'll find the raw XML in there.) There's an option to tell GHC
> to not do this - however, I don't see any option anywhere to tell it to
> embed a *different* resource file instead.
All I meant by linking is including the object file when you invoke ghc.
windres foo.rc -o foores.o
ghc bar.hs foo.o
-Jeff
More information about the Haskell-Cafe
mailing list