I just installed SFML packages using NuGET Package Manager. After installing it. I ran a basic program from its official page. Just copy and paste.
#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;
}
When I run this i get LNK 2001 error. Stating Unresolved External Symbol.
My Own TRY
I searched on google and found that the problem is it with the lib files. I found the files in the package folder, none of them are listed on the tools, Project->Properties.
Tried adding SFML_DYNAMIC, didn't work;