gnu-misc-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: application icon


From: John Paul Wallington
Subject: Re: application icon
Date: Wed, 07 Feb 2007 00:06:08 +0000
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.92 (gnu/linux)

"Ron Baker,    Pluralitas!" <stoshu@bellsouth.net.po> writes:

> I'm writing and application using mingw.
> How does one set the icon for the application that
> shows in windows explorer?
> Is it something I can put in the source or
> is it a post compile (and link) operation?

First create a resource-definition script (.rc file).  The file
could be as simple as:

1 ICON "foo.ico"

(See
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/tools/tools/about_resource_files.asp
for more details of the .rc file format)

then compile it with GNU Binutils' windres utility, eg:

windres foo.rc foores.o

and link with gcc, eg:

gcc -o foo.exe foo.o foores.o

Also, you'll probably get more comprehensive and correct answers to
mingw questions on their user mailing list:

https://lists.sourceforge.net/lists/listinfo/mingw-users
http://news.gmane.org/gmane.comp.gnu.mingw.user/


reply via email to

[Prev in Thread] Current Thread [Next in Thread]