Hello, I'm trying out SFML for the first time and everything worked fine, with the example code. So then I started integrating it with my project and came across a really weird problem. So I started with this piece of code:
#include <SFML/Window.hpp>
/*
* @brief Main function, entry point
*
* @return Exit code
*/
int main() {
sf::Window window;
return 0;
}
And got the following errors:
/usr/local/lib/libsfml-window.so: undefined reference to `sf::Clock::Reset()'
/usr/local/lib/libsfml-window.so: undefined reference to `sf::Unicode::UTF8Offsets'
/usr/local/lib/libsfml-window.so: undefined reference to `sf::Clock::Clock()'
/usr/local/lib/libsfml-window.so: undefined reference to `sf::Clock::GetElapsedTime() const'
/usr/local/lib/libsfml-window.so: undefined reference to `sf::Unicode::UTF8TrailingBytes'
/usr/local/lib/libsfml-window.so: undefined reference to `sf::Sleep(float)'
Now, I 'fixed' it like so:
#include <SFML/Window.hpp>
/*
* @brief Main function, entry point
*
* @return Exit code
*/
int main() {
sf::Clock testClock; //this fixed the problem???!!!!
sf::Window window;
return 0;
}
it builds fine, no errors at all...
Someone please help me?
By the way, I'm using SFML 1. 6 on an Ubuntu machine