Nov 24, 2010 at 2:17am UTC
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 Nov 24, 2010 at 2:31am UTC
Nov 24, 2010 at 2:22am UTC
You need windres if I recall correctly.
Nov 24, 2010 at 2:32am UTC
what do you mean by windres
Nov 24, 2010 at 2:34am UTC
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