SFML community forums

Help => Window => Topic started by: svrtgujbhk on March 21, 2011, 10:38:43 am

Title: Getting the example code to run
Post by: svrtgujbhk on March 21, 2011, 10:38:43 am
I'm having issues running the example code (http://www.sfml-dev.org/tutorials/1.6/window-window.php) -- 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 (http://www.mediafire.com/?by4d2xb8k6j216y) (15 MB)
Title: Getting the example code to run
Post by: Laurent on March 21, 2011, 10:43:00 am
You must recompile SFML, the VC2008 binaries are not compatible with VC2010.
Title: Getting the example code to run
Post by: svrtgujbhk 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?
Title: Getting the example code to run
Post by: svrtgujbhk 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?
Title: Getting the example code to run
Post by: Laurent 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.