Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Help
»
Window
»
Getting the example code to run
Print
Pages: [
1
]
Author
Topic: Getting the example code to run (Read 2058 times)
0 Members and 1 Guest are viewing this topic.
svrtgujbhk
Newbie
Posts: 20
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)
Logged
Laurent
Administrator
Hero Member
Posts: 32498
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.
Logged
Laurent Gomila - SFML developer
svrtgujbhk
Newbie
Posts: 20
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?
Logged
svrtgujbhk
Newbie
Posts: 20
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?
Logged
Laurent
Administrator
Hero Member
Posts: 32498
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.
Logged
Laurent Gomila - SFML developer
Print
Pages: [
1
]
SFML community forums
»
Help
»
Window
»
Getting the example code to run