I followed the installation instructions.
Downloaded SFML 1.6 Full SDK, copied the include and lib folders to codeblocks' mingw include and lib folders.
And then I tried compiling the example code
#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;
}
Then I get errors :
Line 6 undefined reference to 'sf::Clock::Clock()'
Line 9 undefined reference to 'sf::Clock::GetElapsedTime() const'
Line 10 undefined reference to 'sf::Sleep(float)'
Line 7 undefined reference to 'sf::Clock::GetElapsedTime() const'
What did I do wrong?
My OS is Win7 Ultimate 64 bit, with CodeBlocks 10.05