Hi, I've been following http://lazyfoo.net/SDL_tutorials/lesson01/index2.php to create a simple C++ program, display an image file. But for me it isn't working. I have placed hello.bmp in the correct directory and haev copied the code exactly, but the image does not display when I run it. I set it up to record error messages, and stdout.txt read "SDL_Init failed: SDL_UpperBlit: passed a NULL surface". Please can anyone tell my what I am doing wrong?
I think it might of been a mistake on my side when I compiled it using "Compile", then "Run" because I clicked "Compile and Run" and it worked fine! Thankyou for helping anyway :)