SFML community forums

Help => General => Topic started by: klepz on February 19, 2018, 11:31:27 pm

Title: SFML and Visual Studio 2015
Post by: klepz on February 19, 2018, 11:31:27 pm
Hi, I need to compile my project on Windows, I followed all the instructions on the SFML learn page and everything went well, but when I try to run my program, I get an error that say "sfml-system-2.dll,sfml-window.dll ...is missing". Where am I going wrong? 
Title: Re: SFML and Visual Studio 2015
Post by: FRex on February 19, 2018, 11:51:59 pm
Copy those near the exe. Also be careful between mixing the debug and release dlls (the ones without -d are release) and your own exe (usually people write and compile code in debug mode to make it faster and allow for proper debugging) because it won't work and will cause really weird errors.
Title: Re: SFML and Visual Studio 2015
Post by: klepz on February 19, 2018, 11:58:34 pm
But where I can find the dlls? the errors ask for ".dll" and all the files in SFML-2.4.2 / lib / is .lib ...
Title: Re: SFML and Visual Studio 2015
Post by: FRex on February 20, 2018, 12:01:01 am
In bin directory. You can also link statically but if you use audio you'd still need OpenAL dll.
Title: Re: SFML and Visual Studio 2015
Post by: klepz on February 20, 2018, 12:03:36 am
 ;D Thanks !!!