[ create a new paste ] login | about

Link: http://codepad.org/6FH933XZ    [ raw code | output | fork ]

C++, pasted on Feb 18:
#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;
}


Output:
1
2
3
4
Line 28: error: SFML/Graphics.hpp: No such file or directory
In function 'int main()':
Line 5: error: 'sf' has not been declared
compilation terminated due to -Wfatal-errors.


Create a new paste based on this one


Comments: