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.
#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?