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

Author Topic: Problem is displaying sprite...  (Read 2478 times)

0 Members and 1 Guest are viewing this topic.

hunterTR

  • Newbie
  • *
  • Posts: 9
    • View Profile
Problem is displaying sprite...
« on: September 17, 2010, 12:45:46 am »
I tried exactly same codes on the tutorial. but I'm getting an error while debug. it seems opening but getting beep,beep sound and this error. and some different things sliding at console.

hunterTR

  • Newbie
  • *
  • Posts: 9
    • View Profile
Problem is displaying sprite...
« Reply #1 on: September 17, 2010, 12:58:08 am »
I fix it.

if anyone getting this error
just change libraries to debug.   "sfml-graphics-d.lib" etc..

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Problem is displaying sprite...
« Reply #2 on: September 17, 2010, 08:09:11 am »
Quote
if anyone getting this error

... read the tutorial ;)
Laurent Gomila - SFML developer

hunterTR

  • Newbie
  • *
  • Posts: 9
    • View Profile
Problem is displaying sprite...
« Reply #3 on: September 17, 2010, 10:12:52 am »
I think you wrote the tutorials but there is nothing about debug libraries please check it again.

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
Problem is displaying sprite...
« Reply #4 on: September 17, 2010, 10:15:50 am »
Quote from: "Tutorial - Getting started - SFML and Visual Studio"
Important: for the Debug configuration, you have to link with the debug versions of the libraries, which have the "-d" suffix (sfml-system-d.lib in this case). If you don't, you may get undefined behaviours and crashes.
:wink:
SFML / OS X developer