I am new to codeblocks and to c programming. I'm trying to write a simple program that loads an image. The code copiles without errors and I am able to execute it manually from the konsole without problems, but when I try to run the code from within IDE it can't find the image file. Why is that? What am I doing wrong?