SFML community forums
Help => Window => Topic started by: Telomin on September 28, 2011, 05:31:44 am
-
hi, im trying to follow the tutorials but i have a problem compiling with gcc
im using archlinux, sfml 1.99 and trying to compile the window-event source
(http://imageshack.us/photo/my-image/402/2011092813171805401920x.png/)
in spanish
test.cpp: En la función ‘int main()’:
test.cpp:20:11: error: ‘Input’ en el espacio de nombres ‘sf’ no nombra un tipo
test.cpp:27:20: error: ‘class sf::Window’ no tiene un miembro llamado ‘GetEvent’
test.cpp:34:81: error: ‘sf::Key’ no se ha declarado
test.cpp:39:40: error: ‘Input’ no se declaró en este ámbito
test.cpp:39:60: error: ‘sf::Key’ no se ha declarado
test.cpp:44:69: error: ‘sf::Joy’ no se ha declarado
test.cpp:45:69: error: ‘sf::Joy’ no se ha declarado
test.cpp:46:69: error: ‘sf::Joy’ no se ha declarado
-
Those tutorials are designed for 1.6
For 2.0
GetEvent() is now called PollEvent()
sf::Input, sf::Joy, sf::key have also been removed.
And you have to now use sf::Joystick and sf::Keyboard to get input.
This thread lists most of the things that have changed so far:
http://www.sfml-dev.org/forum/viewtopic.php?t=5343
-
thank you very much!