I'm trying to compile a C program with a icon attached.
I'm following this instructions: How do I add an icon to a mingw-gcc compiled executable?
Both Evan's and Steven's replies.
I'm getting this error 4x:
ico.rc:1: unrecognized escape sequence
when I run:
windres ico.rc -O coff -o ico.res
The working dir is where the executable, source file and 'icon.ico' files are. The icon is just an png converted with
ffmpeg -i icon.png icon.ico
The '.rc' file content is:
id ICON ico.ico
My machine is a Windows 10 32-bits with MINGW, without Microsoft Visual Studio.
How can I compile my program with an icon?