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

Author Topic: Getting the example code to run  (Read 2058 times)

0 Members and 1 Guest are viewing this topic.

svrtgujbhk

  • Newbie
  • *
  • Posts: 20
    • View Profile
Getting the example code to run
« on: March 21, 2011, 10:38:43 am »
I'm having issues running the example code -- the application crashes on the first line sf::Window App(sf::VideoMode(800, 600, 32), "SFML Window");.

I'm using VC10. Here's my project files. There' no code in there other than what is given in the tutorial. It's so large because of SFML. Maybe I set up the project wrong?
engine.zip (15 MB)

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Getting the example code to run
« Reply #1 on: March 21, 2011, 10:43:00 am »
You must recompile SFML, the VC2008 binaries are not compatible with VC2010.
Laurent Gomila - SFML developer

svrtgujbhk

  • Newbie
  • *
  • Posts: 20
    • View Profile
Getting the example code to run
« Reply #2 on: March 21, 2011, 12:12:01 pm »
That got it to run, but now it freezes when I open it, and the console window is still up.

This could be because of errors and warnings I got while converting the VC08 project to a VC10 project and during compilation.

I'm really not keen on building VC10 projects manually (there are a lot of settings to configure). Hasn't anyone posted VC10 libraries on the forum?

svrtgujbhk

  • Newbie
  • *
  • Posts: 20
    • View Profile
Getting the example code to run
« Reply #3 on: March 21, 2011, 02:11:46 pm »
I installed VC2008 and I get the same issue as before. The program opens, I am able to see the window, but it's frozen and when I try to close it, the program crashes. Any ideas what I should try next?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Getting the example code to run
« Reply #4 on: March 21, 2011, 02:37:29 pm »
Well, this example is not supposed to "work" -- it doesn't react to user interactions. Go at least to the second tutorial to have something to play with.
Laurent Gomila - SFML developer