Please post the version of windres you are using. There is some problem with some of them.
Also, the meaning of the -I option was changed in the past few years.
Gives below for me with my version of "GNU windres 2.17.50 20060824"; note you can use older windres but you need to change options somewhere in Code::Blocks to do so. Link on what to change if you wish to use the really old windres
http://forums.codeblocks.org/index.php/topic,27.html
Note, the thread is several years old, so the info may or may not work.
-J --input-format=<format> Specify input format
-I --include-dir=<dir> Include directory when preprocessing rc file
Tim S