title: How to compile and link an image in Code::Blocks
body: <p>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:</p>
  
  <p><a href="https://i.stack.imgur.com/FlG62.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FlG62.png" alt="screenshot"></a></p>
  
  <p>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.</p>
  
  <p>I would like to know how to compile an image file without getting an error message.</p>