I'm setting up a sfml project for the first time and I can't seem to get a shape drawn to the screen. I get two linker errors: error lnk2001 unresolved external symbol. One doesn't like sfml's Color:Red and the others doesn't like RenderStates. I can create a window just fine, just can't put anything on it.
Here's the code:
#include<iostream>
#include <SFML/Graphics.hpp>
using namespace std;
int main()
{
sf::RenderWindow window(sf::VideoMode(600, 800), "SFML works!");
sf::CircleShape circle;
circle.setRadius(40);
circle.setPosition(100, 100);
circle.setFillColor(sf::Color::Red);
while (window.isOpen())
{
sf::Event event;
while (window.pollEvent(event))
{
if (event.type == sf::Event::Closed)
window.close();
}
window.clear();
window.draw(circle);
window.display();
}
return 0;
}