
11 Sep
2008
11 Sep
'08
9:30 p.m.
Andrew Coppin
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