hi all,
i recently started looking into the world of programming. i have for a long time though about it, and especially game programming tends to be my thing, hence i was redirected to using SFML through the cplusplus.com forum.
Anywhoo, i am currently following the tutorial on how to set up SFML with codeblocks and the newest version 4.4 of mingw.
This is the code the tutorial shows me to try and use.
#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;
}
But when i try and compile i get - undefined reference to sf::sleep and sf::Clock.
It might have something to do with my build options and other link options, as it is kinda the part where the tutorial lost me. Currently i have
-isfml-system
But not sure thats sufficient? tbh the tutorial does go into the subject a bit on these and clearly states that there are several types of this system thingy all depending on which things you use in your code.
And i have no idea what im using and what it requires in order to compile and run
Thanks for taking your time to read.
Best regards