SFML 2.0 crashes anytime a method is called

Posted by Ken on Stack Overflow See other posts from Stack Overflow or by Ken
Published on 2012-10-29T22:57:17Z Indexed on 2012/10/29 23:00 UTC
Read the original article Hit count: 273

Filed under:
|
|
|

This code generates an exception:

#include <SFML/Graphics.hpp>
#include <SFML/Window.hpp>
#include <SFML/System.hpp>

int main()
{

    sf::Clock clock;
    clock.getElapsedTime();

    return 0;
}

However, this doesn't crash:

#include <SFML/Graphics.hpp>
#include <SFML/Window.hpp>
#include <SFML/System.hpp>

int main()
{

    sf::Clock clock;

    return 0;
}

I'm using SFML 2.0, Windows 7, MinGW 4.70 (Code::Blocks). I don't know why, I followed all instructions to link the libraries and nothing seems to be working.

I might be missing something simple through my anger (I've been trying to run sample code for a week, nothing has been working), so can anybody throw me a bone?

© Stack Overflow or respective owner

Related posts about c++

Related posts about c