Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Failed to open imagin  (Read 1439 times)

0 Members and 1 Guest are viewing this topic.

BorisSaid

  • Newbie
  • *
  • Posts: 3
    • View Profile
Failed to open imagin
« 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.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10801
    • View Profile
    • development blog
    • Email
Failed to open imagin
« Reply #1 on: March 08, 2017, 02:49:42 pm »
You're probably mixing debug and release libs.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

BorisSaid

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Failed to open imagin
« Reply #2 on: March 09, 2017, 02:38:08 pm »
I'll check that

BorisSaid

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Failed to open imagin
« Reply #3 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?

Hapax

  • Hero Member
  • *****
  • Posts: 3346
  • My number of posts is shown in hexadecimal.
    • View Profile
    • Links
Re: Failed to open imagin
« Reply #4 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.
Selba Ward -SFML drawables
Cheese Map -Drawable Layered Tile Map
Kairos -Timing Library
Grambol
 *Hapaxia Links*

 

anything