[Haskell-cafe] Compiling a windows app - embedding application
bulat.ziganshin at gmail.com
Tue Jun 2 10:28:37 EDT 2009
Tuesday, June 2, 2009, 4:47:55 PM, you wrote:
> is it possible to make ghc embedd an application icon in the .exe during
> the compilation process?
i've found that answer may be googled as "gcc icon":
1) create icon.rc containing one line:
100 ICON "freearc.ico"
2) compile it using windres:
windres.exe icon.rc icon.o
3) link in icon.o when making executable:
ghc --make main.hs icon.o
Bulat mailto:Bulat.Ziganshin at gmail.com
More information about the Haskell-Cafe