Hello people, I was trying to set up SFML-1.6 with Codeblocks but I keep getting these errors when I compile.
reference to `sf::Clock::Clock()'|
obj\Debug\main.o(.text+0x13c):C:\Users\Rob\Desktop\CodeBlocks\Everything\main.cpp|7|undefined reference to `sf::Clock::GetElapsedTime() const'|
obj\Debug\main.o(.text+0x156):C:\Users\Rob\Desktop\CodeBlocks\Everything\main.cpp|9|undefined reference to `sf::Clock::GetElapsedTime() const'|
obj\Debug\main.o(.text+0x183):C:\Users\Rob\Desktop\CodeBlocks\Everything\main.cpp|10|undefined reference to `sf::Sleep(float)'|
||=== Build finished: 4 errors, 0 warnings ===|
Here is the code I am using:
#include <SFML/System.hpp>
#include <iostream>
using namespace std;
int main()
{
sf::Clock Clock;
while (Clock.GetElapsedTime() < 5.f)
{
std::cout << Clock.GetElapsedTime() << std::endl;
sf::Sleep(0.5f);
}
return 0;
}
I followed the installation tut from here:
http://www.sfml-dev.org/tutorials/1.6/start-cb.phpI think I followed everything correctly, each one looks correctly and I have set my compiler options up as the pictures state.
Does anybody know why I am getting this error? Any help would be appreciated.
Thanks in Advanced.