Hello,
I am dealing with this problem. I followed one tutorial on youtube and write this in code.
sf::Texture pTexture;
sf::Sprite PlayerImage;
if (!pTexture.loadFromFile("player1.png"))
std::cout << "Error could not load player image" << std::endl;
And I can compile it without problems, run it and then I got my output when it couldnt load. I dont know what to do. I use Visual Studio 2013 and SFML 2.1. I have the picture at the same directory where my main is. I am new to SFML and I already tried a Joystick, Keyboard and mouse fucktions, to draw a cycrle etc. And this is the first thing that doesnt work..
Thanks for replies.
Why don't you simply print out what it is?
std::cout << "CWD is: " << getcwd() << std::endl;
or similar.
Then you don't need to guess.