Howtos - Hack on Windows » History » Version 1
Greg Burri, 06/04/2009 11:45 AM
1 | 1 | Greg Burri | h1. Howto |
---|---|---|---|
2 | |||
3 | h2. Is it possible to make ghc embedd an application icon in the .exe during the compilation process? |
||
4 | |||
5 | i've found that answer may be googled as "gcc icon": |
||
6 | |||
7 | 1) create icon.rc containing one line: |
||
8 | 100 ICON "freearc.ico" |
||
9 | |||
10 | 2) compile it using windres: |
||
11 | windres.exe icon.rc icon.o |
||
12 | |||
13 | 3) link in icon.o when making executable: |
||
14 | ghc --make main.hs icon.o |
||
15 | |||
16 | see http://thread.gmane.org/gmane.comp.lang.haskell.cafe/59309/focus=59312 |