Recently I got the newest version of SFML 2, but I couldn't get sf::Clock to work.
This code produces the error:
#include <SFML/Graphics.hpp>
int main()
{
sf::Clock clock();
sf::Time time = clock.getElapsedTime();
return 0;
}
The compiler tells me this:
error: request for member 'getElapsedTime' in 'clock', which is of non-class type 'sf::Clock()'
note:
This does also not work with <SFML/System.hpp>