SFML community forums

Help => Graphics => Topic started by: helphelphelp on May 27, 2015, 05:20:33 pm

Title: Error in the tutorial basic code
Post by: helphelphelp on May 27, 2015, 05:20:33 pm
http://puu.sh/i2uQw/37abb7a58f.png

Following the Sprites and Textures tutorial i get this error for every image format i try. The image im trying to load is in every folder in my project (im using VisualStudio 2013).
Title: Re: Error in the tutorial basic code
Post by: G. on May 27, 2015, 05:26:15 pm
You're linking the release lib in debug mode or debug lib in release mode.
Title: Re: Error in the tutorial basic code
Post by: helphelphelp on May 27, 2015, 05:38:16 pm
Thanks.
Title: Re: Error in the tutorial basic code
Post by: Hapax on May 27, 2015, 09:57:43 pm
I see you're using
system("PAUSE");
to keep the console open after your main code has been completed.
Consider using keepConsoleOpen (https://github.com/Hapaxia/Keep-Console-Open) for this task; it automatically keeps it open on errors and uses preferable code to system("PAUSE") to stop the console from closing.