Hey,
I've been setting up SFML2.0 and I've been able to generate a render window with openGL in it. Now I'm trying to take keyboard and mouse input. However, when I try:
sf::Mouse::IsButtonPressed(button); or
sf::Keyboard::IsKeyPressed(keyCode);
I get:
error LNK2019: unresolved external symbol "__declspec(dllimport) public: static bool __cdecl sf::Keyboard::IsKeyPressed(enum sf::Keyboard::Key)" (__imp_?IsKeyPressed@Keyboard@sf@@SA_NW4Key@12@@Z) referenced in ...
error LNK2019: unresolved external symbol "__declspec(dllimport) public: static bool __cdecl sf::Mouse::IsButtonPressed(enum sf::Mouse::Button)" (__imp_?IsButtonPressed@Mouse@sf@@SA_NW4Button@12@@Z) referenced in ...
(Happens in both release and debug mode. Note: I am using static libraries)
If all of my other SFML2 setup works so far, how come IsKeyPressed and IsButtonPressed do not work?
Thanks!