I wanted to compile some of my C++ SFML games that I wrote on Linux so my friends can play it but I don't know how to compile my projects in Visual Studio.
After I add sfml2.5.1/include
path to "Additional include directories", SFML_STATIC
to "Preprocessor definitions", sfml 2.5.1/lib
directory to "Additional library directories" and sfml-graphics.lib;sfml-window.lib;sfml-system.lib
to "Additional dependencies" and then run it, it says:
fatal error LNK1181: cannot open input file 'sfml-graphics.lib'
I tried to change sfml*.lib
to libsfml*.a
and here is first 3 lines of 52 of what it saying:
1>Game.obj : error LNK2001: unresolved external symbol "public: static class sf::RenderStates const sf::RenderStates::Default" (?Default@RenderStates@sf@@2V12@B)
1>Game.obj : error LNK2001: unresolved external symbol "public: static class sf::Color const sf::Color::White" (?White@Color@sf@@2V12@B)
1>Game.obj : error LNK2001: unresolved external symbol "public: virtual class sf::Vector2<float> __cdecl sf::CircleShape::getPoint(unsigned __int64)const " (?getPoint@CircleShape@sf@@UEBA?AV?$Vector2@M@2@_K@Z)
What to do with this?