IIRC, the version of windres and Code::Blocks contributed to this problem.
What are both versions?
Also, what is the version of gcc?
Note, one issue was the folder being called "rc" with some of the above;
renaming it "./rc" or ".\rc" solved that issue.
A different windres issue (not being caused by Code::Blocks) is having spaces/special characters in file path.
Tim S.