Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: SFML and Visual Studio 2015  (Read 1701 times)

0 Members and 1 Guest are viewing this topic.

klepz

  • Newbie
  • *
  • Posts: 5
    • View Profile
SFML and Visual Studio 2015
« 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? 

FRex

  • Hero Member
  • *****
  • Posts: 1848
  • Back to C++ gamedev with SFML in May 2023
    • View Profile
    • Email
Re: SFML and Visual Studio 2015
« Reply #1 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.
Back to C++ gamedev with SFML in May 2023

klepz

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: SFML and Visual Studio 2015
« Reply #2 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 ...

FRex

  • Hero Member
  • *****
  • Posts: 1848
  • Back to C++ gamedev with SFML in May 2023
    • View Profile
    • Email
Re: SFML and Visual Studio 2015
« Reply #3 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.
Back to C++ gamedev with SFML in May 2023

klepz

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: SFML and Visual Studio 2015
« Reply #4 on: February 20, 2018, 12:03:36 am »
 ;D Thanks !!!