I am trying to get the SFML2 Snap shot working in code:blocks for SFML2... but unable to do so.. I followed the instructions and was able to get cmake to build everything (I think)
I extracted the SFML2 snapshot file into ~/Development/SFML2 and ran cmake there, as you can see all the files seamed to have been created?
In Code:Blocks I seam to be unable to compile the test clock application.....
but when i try to compile the test code...
I get this strange error about the functions not being in sf:: ??
#include <SFML/System.hpp>
#include <iostream>
int main()
{
sf::Clock Clock;
while (Clock.GetElapsedTime() < 5.f)
{
std::cout << Clock.GetElapsedTime() << std::endl;
sf::Sleep(0.5f);
}
return 0;
}
error: 'Class sf::Clock' has no member named 'GetElapsedTime'
error: Sleep' is not a member function of 'sf'