I'm using the static version, I put
-lsfml-graphics
-lsfml-window
-lsfml-system
under linker options, defined SFML_DYNAMIC, placed the dll's in the exe folder and everything.
My mingw version is 4.70.
I tried to run the following program :
#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;
}
It compiles fine. But when I try to run, I get a segmentation fault upon the declaration(calling of the constructor, actually) of sf::Clock Clock.
Am I missing something?
Thanks!