Hey guys, it's my first time posting here something basically because of an issue that i'm getting on building my project.
I installed SFML 2 days ago and followed a video of how to setup it. now, when i'm trying to build the next code:
#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;
}
I'm keeping getting an Linker Error LNK2019 and LNK1120.
Here is the build error:
Severity Code Description Project File Line Suppression State
Error LNK2001 unresolved external symbol "public: static class sf::RenderStates const sf::RenderStates::Default" (?Default@RenderStates@sf@@2V12@B) SFML_TEST C:\Users\User\source\repos\SFML_TEST\SFML_TEST\Main.obj 1
Severity Code Description Project File Line Suppression State
Error LNK2001 unresolved external symbol "public: static class sf::Color const sf::Color::Green" (?Green@Color@sf@@2V12@B) SFML_TEST C:\Users\User\source\repos\SFML_TEST\SFML_TEST\Main.obj 1
Severity Code Description Project File Line Suppression State
Error LNK1120 2 unresolved externals SFML_TEST C:\Users\User\source\repos\SFML_TEST\x64\Debug\SFML_TEST.exe 1
Here are my properties to the project, hope it helped finding my problem:
https://imgur.com/a/cIHgOZL