Actions
Howtos - Hack on Windows » History » Revision 1
Revision 1/102
| Next »
Greg Burri, 06/04/2009 11:45 AM
Howto¶
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
see http://thread.gmane.org/gmane.comp.lang.haskell.cafe/59309/focus=59312
Updated by Greg Burri over 15 years ago · 1 revisions