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

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

Re: application icon


From: Ron Baker, Pluralitas!
Subject: Re: application icon
Date: Tue, 6 Feb 2007 19:20:46 -0800

"John Paul Wallington" <jpw@pobox.com> wrote in message 
874ppyvnkf.fsf@lem.shootybangbang.com">news:874ppyvnkf.fsf@lem.shootybangbang.com...
> "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/

Excellent.
Thanks.

--
rb 




reply via email to

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