SFML doesn't work...

I've got an error with dlls...
I tried 64bit (it's on my PC) version but it had errors, and i couldn't run the program... I'm trying to do this in CodeBlocks
Screenshot: https://imgur.com/a/8LEqD

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
 #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;
}

Codeblocks compiler (TDM-GCC 4.9.2, 32 bit, SJLJ) is 32 bit not 64
Last edited on
I've downloaded 32 bit version.
Topic archived. No new replies allowed.