1
General / Getting error on compiling simple SFML program.
« on: August 30, 2013, 01:00:45 am »
Am getting this error: http://prntscr.com/1o7dpu
Here is the code i am using:
Am using Visual C++ 2010. Thankyou in advanced, Fetz
Here is the code i am using:
Code: [Select]
#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;
}
Am using Visual C++ 2010. Thankyou in advanced, Fetz