Adding an Icon to an Binary File (.EXE)

Hi all,

i would like to know how can i add an icon as resource to an exe file. I
use crosscompiling and the GCC in Linux to create the windows binary. I
hope someone can help me with this little problem.

bye bye
Steffen–

Steffen Pohle (@Steffen_Pohle)| _ x
http://stpohle.bei.t-online.de | /#/ BomberClone - The Clone of
JabberID: stpohle at amessage.de ||###| DynaBlaster and Bomberman
ICQ: 370965 Yahoo: stpohle | #/ http://www.bomberclone.de
MSN: stpohle at hotmail.com |

i would like to know how can i add an icon as resource to an exe file.
I
use crosscompiling and the GCC in Linux to create the windows binary.
I
hope someone can help me with this little problem.

bye bye
Steffen

I’ve done that. I don’t have my machine here so I don’t remember the
specifics, but essentially you have your .ico, you create a .rc file
that reference the .ico (three lines, but I don’t remember the exact
format), compile it with windres (it comes with MinGW, I believe), this
generates a .obj, link that to the rest of your .objs and you’re done.

--Gabriel