MinGW cross compiler : embedding an icon

As I said yesterday to someone who asked, the format of the .rc file is
quite simple. Here it is :

#define IDI_ICON1 101
IDI_ICON1 ICON DISCARDABLE “icon.ico”

I guess this will work too :

101 ICON DISCARDABLE “icon.ico”

just windres that and link the resulting .obj

--Gabriel

Gabriel Gambetta wrote:

As I said yesterday to someone who asked, the format of the .rc file is
quite simple. Here it is :

#define IDI_ICON1 101
IDI_ICON1 ICON DISCARDABLE “icon.ico”

I guess this will work too :

101 ICON DISCARDABLE “icon.ico”

just windres that and link the resulting .obj

–Gabriel

What is the recommended way of doing the equivalent in Unix (spec. Linux?)–
Michel Bardiaux
Peaktime Belgium S.A. Bd. du Souverain, 191 B-1160 Bruxelles
Tel : +32 2 790.29.41

As I said yesterday to someone who asked, the format of the .rc file
is

quite simple. Here it is :

#define IDI_ICON1 101
IDI_ICON1 ICON DISCARDABLE “icon.ico”

I guess this will work too :

101 ICON DISCARDABLE “icon.ico”

just windres that and link the resulting .obj

What is the recommended way of doing the equivalent in Unix (spec.
Linux?)

That’s how I do it in Linux :slight_smile: Use i386-mingw32-windres.

--Gabriel