SFML error

I have code blocks and MinGW. I downloaded SFML, installed everything properly following the tutorial. Everything compiles very well, but when the console pops up, this error shows up:

 
  The procedure entry point __gxx_personality_v0 could not be located in the dynamic link library libstdc++-6.dll.


Can anyone explain me what to do? I tried downloading another libstdc++-6.dll, but then I just get "don't send" error. I tried un-installing everything but after I downloaded new Codeblocks with MinGW compiler in it, I still get the same error. Tried to search in the net, but I weren't able to find any solution that I could understand.
Also, My code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include <SFML/Graphics.hpp>

int main()
{
    sf::RenderWindow window(sf::VideoMode(200, 200), "SFML works!");
    sf::CircleShape shape(100.f);
    shape.setFillColor(sf::Color::Green);

    while (window.isOpen())
    {
        sf::Event event;
        while (window.pollEvent(event))
        {
            if (event.type == sf::Event::Closed)
                window.close();
        }

        window.clear();
        window.draw(shape);
        window.display();
    }

    return 0;
}



bump
Topic archived. No new replies allowed.