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

Author Topic: n00b error  (Read 1977 times)

0 Members and 2 Guests are viewing this topic.

Telomin

  • Newbie
  • *
  • Posts: 2
    • View Profile
n00b error
« 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




in spanish
Quote

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

thePyro_13

  • Full Member
  • ***
  • Posts: 156
    • View Profile
n00b error
« Reply #1 on: September 28, 2011, 06:12:15 am »
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

Telomin

  • Newbie
  • *
  • Posts: 2
    • View Profile
n00b error
« Reply #2 on: September 28, 2011, 06:19:52 am »
thank you very much!