SFML community forums

Help => General => Topic started by: natchos on September 22, 2012, 12:03:44 am

Title: SFML 2.0 switching from debug to release setting
Post by: natchos 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
Title: Re: SFML 2.0 switching from debug to release setting
Post by: Laurent 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
Title: Re: SFML 2.0 switching from debug to release setting
Post by: eXpl0it3r 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. ;)
Title: Re: SFML 2.0 switching from debug to release setting
Post by: natchos 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.