SFML community forums

Help => General => Topic started by: betawarz on December 17, 2013, 01:00:41 am

Title: Texture::loadFromFile always fails
Post by: betawarz on December 17, 2013, 01:00:41 am
I'm compiling code with Visual Studio 2013 and SFML 2.1. The code compiles, and runs, but Texture::loadFromFile always returns false. I've tried feeding it a relative path to the working directory, an absolute path directory to a png file, and neither seem to work. Is there a way I can see exactly what it's trying to load or the error message as to why it's failing? I can't figure out how to use sf::err() to read error messages.

Thanks!
Title: Re: Texture::loadFromFile always fails
Post by: eXpl0it3r on December 17, 2013, 01:08:12 am
If not redirected sf::err will write to std::err which in Windows is usually the console. But if you build a window application and deactivate the console, you won't get to see the output. So you'll end up with the following three options: