SFML Extremely Confusing

The version I was using was SFML 2.1 for visual C++ 2012 64-bit for windows. I deleted that and am now using a 32-bit. When I debug it, it says it can't find the .exe, but I had previously hit the save all button.

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;
}  


This is my .cpp. I don't have a header file, but I think I'm supposed to. One of the errors says "cannot open SFML/Graphics.hpp. No such file or directory"



I'm not sure if my libraries are correct, but even if they weren't, shouldn't it at least be able to find the header file?
Last edited on
where did you extract the sfml archieve, are you sure you configure the IDE to look for additional paths such as the SFML folder ?
Topic archived. No new replies allowed.