Hi,
I use codeblocks to compile icon resource to add icon for exectuable file.
The resources.rc file content is:
MAINICON ICON "mainico.ico"
I add resources.rc file and mainico.ico file into codeblocks project, then build, the build log window shows error as below:
[ 66.7%] windres.exe -i C:\william\Program\CODEBL~1\TRUESE~2\rc\RESOUR~1.RC -J rc -o obj\Release\rc\resources.res -O coff -IC:\MinGW\wxWidgets-2.8.10\include -IC:\MinGW\wxWidgets-2.8.10\lib\gcc_lib\mswu
windres.exe: preprocessing failed.
Process terminated with status 1 (0 minutes, 5 seconds)
1 errors, 0 warnings
It is pretty strange that no more detail error information but just "preprocessing failed". So i look for some help here if anybody knows the reason? Thanks a lot.
The windres version i am using:
GNU windres (GNU Binutils) 2.20
Copyright 2009 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) any later version.
This program has absolutely no warranty.