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

Author Topic: SFML 2.0 switching from debug to release setting  (Read 1751 times)

0 Members and 1 Guest are viewing this topic.

natchos

  • Jr. Member
  • **
  • Posts: 97
    • View Profile
    • Email
SFML 2.0 switching from debug to release setting
« on: September 22, 2012, 12:03:44 am »
So, I've made the rough beginnings of the seed of a small demo of a game that I'm working on and now I would like to send it to one of my friend.

However, when I try to compile it in release setting an error message pops up saying that I'm missing sfml-system-2.dll.

Is this a known problem or is it something trivial that I have done wrong? I don't think that there is anything wrong in the code itself since it compiles and runs just fine in debug setting. Also I checked in the sfml 2.0-rc folder and found that there was a file called sfml-system-2.dll lying in /bin. So the file is there my comp/compiler just wont find it.

Any tips?

FYI I'm using visual c++ express 2008

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: SFML 2.0 switching from debug to release setting
« Reply #1 on: September 22, 2012, 09:32:41 am »
Quote from: The tutorial
don't forget to copy the SFML DLLs (they are in <sfml-install-path/bin>) to the directory where your compiled executable is
Laurent Gomila - SFML developer

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11047
    • View Profile
    • development blog
    • Email
Re: SFML 2.0 switching from debug to release setting
« Reply #2 on: September 22, 2012, 09:34:28 am »
Well the error is quite clear and it's a basic thing that you as developer should actually know... ;)
The application (not the compiler) can't find the specified .dll file.
Just copy the file from the bib folder next to your application and it should work.

Since this is so basic you should Google a bit what a dll file is, how it connects to your application etc. ;)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

natchos

  • Jr. Member
  • **
  • Posts: 97
    • View Profile
    • Email
Re: SFML 2.0 switching from debug to release setting
« Reply #3 on: September 22, 2012, 05:54:36 pm »
Ty. I had actually placed the file that it requested before in the folder, but only now noticed that the error message had changed to requesting another dll.

 

anything