Project

General

Profile

Howtos - Hack on Windows » History » Revision 2

Revision 1 (Greg Burri, 06/04/2009 11:45 AM) → Revision 2/102 (Greg Burri, 06/21/2009 02:22 PM)

h1. Howto 

 h2. 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