I am programming in MinGW and have run into a problem trying to compile a resource (.rc) file using Windres.exe. I have downloaded the most current version of MinGW (as of 12/12/2011). When I use the command
windres -O coff -i about1.rc -o about1.res
Windres hurls back perhaps 100 lines that read "warning: null character(s) ignored". Just before terminating, Windres also states" "About1.rc:1:syntax error".
There are no null characters in the resource file. Moreover, the first line is nothing more than a simple #include "dlgresource.h" statement.
To further confuse things, when I use MSFT's rc.exe to compile exactly the same resource file, the compilation proceeds smoothly and the resulting .res file links correctly with the program's .obj file and runs as planned.
Does anyone have any idea what might be going on?