SFML community forums

Help => Window => Topic started by: BorisSaid on March 08, 2017, 02:40:20 pm

Title: Failed to open imagin
Post by: BorisSaid on March 08, 2017, 02:40:20 pm
Before you tell me to go look at previous posts on this topic, let me tell that I have tried debugging this for a very very long time. I've tried multiple pictures, using the relative directory and not relative directory and spreading the picture out. Here is my code http://pastebin.com/RD43AgaQ
Thanks in advance for your help and support.
Title: Failed to open imagin
Post by: eXpl0it3r on March 08, 2017, 02:49:42 pm
You're probably mixing debug and release libs.
Title: Re: Failed to open imagin
Post by: BorisSaid on March 09, 2017, 02:38:08 pm
I'll check that
Title: Re: Failed to open imagin
Post by: BorisSaid on March 09, 2017, 02:40:35 pm
I have one of each debug and one of each release lib, which type should I have?
Title: Re: Failed to open imagin
Post by: Hapax on March 13, 2017, 01:25:06 pm
Link only the ones you are using: debug libraries during debug build, release libraries during release build.

Make sure that the different files used are exactly the same version (including the actual compiled library that accompanies the executable file). By 'version', I mean debug/release, 32-bit/64-bit, as well as the SFML release version.

Also, remember to use break after each case in your switch statement.