Create a exe file with icon in Mingw gcc

January 12, 2009

1. get a icon file name "logo.ico"
2. create an file name "logo.rc", contain a line:

1 ICON "icon.ico"

3. run : (windres was include in Mingw)

windres logo.rc logo.o

4. link the "logo.o" file together with other object files to the final exe file.

posted in GTK +, Programming by PT

Follow comments via the RSS Feed | Leave a comment | Trackback URL

One Response to Create a exe file with icon in Mingw gcc

  1. vzomik says:

    嗯,谢谢啦,我去试试。

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">

Page optimized by WP Minify WordPress Plugin

 
Powered by Wordpress and MySQL. Theme by Shlomi Noach, openark.org