I am using the latest 2.0 version and everything works fine except for the sf::Time class, which isn't getting imported
#include <SFML/System.hpp>
class Widget {
public:
//...
virtual void repaint(sf::RenderTarget *renderTarget, sf::Time sinceLastFrame) = 0;
};
and during compilation i get the following error:
[100%] Building CXX object renderer/CMakeFiles/renderer.dir/Widget.cpp.o
cd /home/nietaki/zpp/TheGameShow_build/renderer && /usr/bin/c++ -I/home/nietaki/zpp/TheGameShow_build -I/home/nietaki/zpp/TheGameShow/libs -I/home/nietaki/zpp/TheGameShow -I/home/nietaki/zpp/TheGameShow/google_mock/include -I/home/nietaki/zpp/TheGameShow/google_mock/gtest/include -I/usr/local/include -o CMakeFiles/renderer.dir/Widget.cpp.o -c /home/nietaki/zpp/TheGameShow/renderer/Widget.cpp
In file included from /home/nietaki/zpp/TheGameShow/renderer/Widget.cpp:8:
/home/nietaki/zpp/TheGameShow/renderer/Widget.h:26: error: ‘sf::Time’ has not been declared
I'm sure it has something to do with the SFML_SYSTEM_API macro, but despite looking through the code I don't really understand how it works.
Any thoughts?
I'm using the latest 2.0 version from github under Linux, building shared libs.