I am using Code::Blocks and I would like to compile and link the icon for my program with the rest of the program. The icon file is a PNG image called icon.png and is in the Others folder of the project folder in the workspace. I right clicked on it and checked "Compile file" and "Link file" in the Options menu. In case this is a bit unclear, I've made a screenshot which shows exactly what I've done:
Anyway, the problem is that the compiler gives me an error message that says "No such file or directory". If I check "Compile file" but not "Link file", the compiling works fine but the image isn't compiled.
I would like to know how to compile an image file without getting an error message.