I have installed this http://www.sfml-dev.org/index.php library on my Ubuntu system. The files are stored in /usr/local/include.
My Eclipse DOES include these files under “Includes >> GNU C++” but if I build the program, the compiler complains about undefined references.
#include <SFML/System.hpp>
#include <iostream>
int main()
{
sf::Clock Clock;
return 0;
}
Causes:
undefined reference to `sf::Clock::Clock()' main.cpp
Any guess what I missed to do?
I was right in my first suggestion.
Here documented, that you must compile like:
So please add -lsfml-system to libraries.