Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Help
»
General
»
[SOLVED]Window-window.cpp file gives compiler error
Print
Pages: [
1
]
Author
Topic: [SOLVED]Window-window.cpp file gives compiler error (Read 2215 times)
0 Members and 1 Guest are viewing this topic.
Chuckleluck
Jr. Member
Posts: 52
[SOLVED]Window-window.cpp file gives compiler error
«
on:
November 09, 2011, 03:39:04 am »
I was reading the SFML tutorial for opening a window, found here:
http://www.sfml-dev.org/tutorials/1.6/window-window.php
, and I downloaded the .cpp file. I attempted to compile it, and it gave me a whole host of errors, akin to: "undefined reference to sf::VideoMode::VideoMode..."
Is it a problem with the file, or am I doing something wrong on my end, and if the latter, what?
Logged
Laurent
Administrator
Hero Member
Posts: 32498
[SOLVED]Window-window.cpp file gives compiler error
«
Reply #1 on:
November 09, 2011, 07:46:51 am »
You need to link to sfml-window.
Logged
Laurent Gomila - SFML developer
Chuckleluck
Jr. Member
Posts: 52
[SOLVED]Window-window.cpp file gives compiler error
«
Reply #2 on:
November 09, 2011, 04:08:23 pm »
Oh, duh. Thank you.
Is the program supposed to close when I click the 'X' like I would on any program? (It doesn't, it just locks up.)
Logged
Laurent
Administrator
Hero Member
Posts: 32498
[SOLVED]Window-window.cpp file gives compiler error
«
Reply #3 on:
November 09, 2011, 04:10:22 pm »
No, now you need to go to the next tutorial to get something that works.
Logged
Laurent Gomila - SFML developer
Chuckleluck
Jr. Member
Posts: 52
[SOLVED]Window-window.cpp file gives compiler error
«
Reply #4 on:
November 09, 2011, 07:47:42 pm »
Ok thank you!
Logged
Print
Pages: [
1
]
SFML community forums
»
Help
»
General
»
[SOLVED]Window-window.cpp file gives compiler error