SFML community forums

Help => General => Topic started by: jerryd on May 06, 2017, 11:32:28 pm

Title: Missing libraries
Post by: jerryd on May 06, 2017, 11:32:28 pm
SFML forum,
 I have been using SFML-2.4.0 with CodeLite and Code::Blocks for some
 time and am now trying to set up MS Visual C++ to use it.  The problem
 is MSVC wants me to include "sfml-graphics.lib" and other similar
 libraries but I don't have those.  Where or how do I get them?

Jerryd
Title: Re: Missing libraries
Post by: Hapax on May 07, 2017, 01:22:27 pm
If you're compiling SFML yourself from source, it needs to be recompiled with the compiler you're using it with - MSVC.

If you use pre-built versions of SFML, download the Visual C++ version from SFML's download page (https://www.sfml-dev.org/download/sfml/2.4.2/).
Title: Re: Missing libraries
Post by: jerryd on May 08, 2017, 01:34:30 am
Hapax,
 Thanks for the reply.

 I am not familiar with CMAKE so I read all about it and I still
 don't understand what it will do for my problem.  It isn't a
 compiler so will it make the files I'm missing?

 I don't have the full MS Visual Studio just MS Visual C++ 2010.

 Any suggestions?

Jerryd
Title: Re: Missing libraries
Post by: eXpl0it3r on May 08, 2017, 07:39:15 am
CMake generates make files and project files for various compiler toolchains and IDEs. By using CMake you can generate a VS 2010 project file which allows you to build SFML libs for VS 2010.

If you're ​using VS 2010 Express, I highly recommend you update to VS 2017 Community.