Eclipse Helios + MinGw: Adding icons to the application build

Recently I’ve worked a Win32 API tutorial ( for creating a simple graphical program. At the point where the icon has been added to the app, however, I’ve got stuck. The compiler did not give an error messages but neither the icon nor the menu did appear. What the hell?

I’ve found the solution on Written for Eclipse Galileo, it works with Helios as well. So, here the short story:

Go Project ->Properties. There follow C/C++ Build -> Settings -> Build Steps.

windres ../src/resources.rc -o ../Resources/resources.o

Note that this is only valid, if you already have your resources in the src folder. Otherwise replace/delete src (and omit Resource, if not required).
Finally go to the Tool Settings tab, then MinGW C Linker -> Miscellaneous and write in the “other objects” field.



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s