0

I am trying to load SFML into my c++ project however, it is not working and I have no idea why. When I build the project I am getting the following errors

Error   1   error LNK2001: unresolved external symbol "public: static class sf::RenderStates const sf::RenderStates::Default" (?Default@RenderStates@sf@@2V12@B)    C:\Users\liamkeenan\Documents\Visual Studio 2012\Projects\Game\Game\Game.obj    Game
Error   2   error LNK2001: unresolved external symbol "public: static class sf::Color const sf::Color::Green" (?Green@Color@sf@@2V12@B) C:\Users\liamkeenan\Documents\Visual Studio 2012\Projects\Game\Game\Game.obj    Game
Error   3   error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup C:\Users\liamkeenan\Documents\Visual Studio 2012\Projects\Game\Game\MSVCRTD.lib(crtexew.obj)    Game
Error   4   error LNK1120: 3 unresolved externals   C:\Users\liamkeenan\Documents\Visual Studio 2012\Projects\Game\Debug\Game.exe   1   1   Game

so can you please help me, I have no idea why I am getting these errors :/

ImXari
  • 144
  • 1
  • 1
  • 8

1 Answers1

1

Your errors are connected with linker, you should add all dependencies. In VS you can find it there "Project Properties->Configuration Properties->Linker->Input->Additional Dependencies".

You should look at this link as well.

FieryCod
  • 1,674
  • 1
  • 19
  • 27