SFML community forums

Help => Graphics => Topic started by: JLM on May 21, 2014, 08:23:00 pm

Title: Problems with Texture.loadFromFile
Post by: JLM on May 21, 2014, 08:23:00 pm
Info: Visual C++ 2008, SFML 2.0(for VC2008), Win32, WinXP.

When I'm loading my texture from file everything going fine until the program will run. Console is showing thousands of strange symbols. In the first line is something like "Failed to load image "lol.png"".
I don't know what I have to do. This image is in every single folder of my project but it still can't load it.
Please! do you have any ideas?
Title: Re: Problems with Texture.loadFromFile
Post by: Jesper Juhl on May 21, 2014, 08:26:40 pm
If you want help you need to ask a question and provide some details.
Title: Re: Problems with Texture.loadFromFile
Post by: Laurent on May 21, 2014, 08:49:20 pm
Don't mix debug and release.
Title: Re: Problems with Texture.loadFromFile
Post by: JLM on May 21, 2014, 08:54:39 pm
In debug I have xxx-d.lib files. In release I have xxx.lib files.
I'm sure they are not mixed.
Title: Re: Problems with Texture.loadFromFile
Post by: zsbzsb on May 21, 2014, 08:56:02 pm
And also do make sure the libs you got are compiled for VS 2008. Actually I recommend you upgrade to 2013 to take advantage of C++11 features.
Title: Re: Problems with Texture.loadFromFile
Post by: JLM on May 21, 2014, 09:12:09 pm
YES that was it! ohh my stupid mistake. Sorry for waste of your time.

P.S.SFML is best 2d library and nothing can change it. I feel proud it's made in c++.