Hey. I'm trying to set up SFML on Visual Studio 2013, I'm using win7 64 bits.
I'm having troubles, the green circle from the tutorial shows up, but when I click the close button, I get a dialog window with:
"bluerobots.exe has triggered a breakpoint."
or it doesn't give me a dialog window but writes:
"First-chance exception at 0x776A332F (ntdll.dll) in bluerobots.exe: 0xC0000005: Access violation reading location 0x00000004."
or sometimes gives yet another strange error. But these two are the most commom.
Here's the whole code:
#pragma once
#include <iostream>
#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;
}