Icon not showing up

I just made a simple win32 application but when I compile it with

g++ main.cpp -mwindows

the file includes resource.h

resource.h has a declaration for an icon made in icon.rc

I made sure to put it in the code but still nothing changes

the icon is not there

it is just the default

I fell like I need to do something with linking and object files but I don't know how to link or create object files

please explain how I can add an icon to my window


I am using the mingw compiler through the command prompt no IDE
Last edited on
You need windres if I recall correctly.
what do you mean by windres
I just found out how to create an object file from a magical thing called a manuel you add -c to your compile code I still need to find out how to link files though
Topic archived. No new replies allowed.