Hey all. I have recently downloaded codeblocaks and SFML. I had a load of errors to start with but that was because my project was saved as a .c file.
Now I have only 4 errors. Can I get some guidence please.
I have used the tutorial 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;
}
ANd here are the 4 errors I get
Untitled1.o:Untitled1.cpp|| undefined reference to `sf::Clock::Clock()'|
Untitled1.o:Untitled1.cpp|| undefined reference to `sf::Clock::GetElapsedTime() const'|
Untitled1.o:Untitled1.cpp|| undefined reference to `sf::Sleep(float)'|
Untitled1.o:Untitled1.cpp|| undefined reference to `sf::Clock::GetElapsedTime() const'|
||=== Build finished: 4 errors, 0 warnings ===|