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

Author Topic: Problem loading images  (Read 1554 times)

0 Members and 1 Guest are viewing this topic.

asdatapel

  • Jr. Member
  • **
  • Posts: 76
    • View Profile
Problem loading images
« on: September 01, 2011, 04:25:17 pm »
Hello everyone, I've encountered a problem with SFML using code::blocks. Whenever I use code::blocks to run a program that has to load an image, it is unable to do so. The console says the reason is : unable to do so. As a result I have to go to the folder where the exe is and run it from there. Help is appreciated.thanks

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Problem loading images
« Reply #1 on: September 01, 2011, 04:35:04 pm »
Change the working directory in your project settings, it is probably not set to the executable directory.
Laurent Gomila - SFML developer

asdatapel

  • Jr. Member
  • **
  • Posts: 76
    • View Profile
Problem loading images
« Reply #2 on: September 01, 2011, 05:18:27 pm »
it is, the project runs properly, everything works as it should except the images, which are white blocks.

asdatapel

  • Jr. Member
  • **
  • Posts: 76
    • View Profile
Problem loading images
« Reply #3 on: September 01, 2011, 06:38:49 pm »
never mind, i found out what the working dir was. sorry