SFML community forums

Help => General => Topic started by: Chuckleluck on November 08, 2011, 09:36:30 pm

Title: Program can't start because sfml-system.dll is missing
Post by: Chuckleluck on November 08, 2011, 09:36:30 pm
I was following the tutorial for the installation of SFML in CodeBlocks, found here: http://www.sfml-dev.org/tutorials/1.6/start-cb.php.  I tried compiling the example project as instructed, and I get this error:
The program can't start because sfml-system.dll is missing from your computer.  Try reinstalling the program to fix this problem."
I DO have the sfml-system.dll file in my SFML-1.6 folder, which is placed in the CodeBlocks folder, as required.

Can someone please point out to me the problem with this?  I followed the instructions dealing with the Global Compiler Settings, and then I added to the Project Build Options, under Linker Settings > Other Linker Options "-lsfml-system".  I did not add "-lsfml-system-d" or "-s" or "-s-d" anywhere.
Title: Program can't start because sfml-system.dll is missing
Post by: julen26 on November 08, 2011, 11:53:51 pm
DLL files must be in the same directory of executable or in the system folder of windows
Title: Program can't start because sfml-system.dll is missing
Post by: Chuckleluck on November 09, 2011, 12:58:50 am
Thanks!  I had a little more trouble because I didn't have libgcc_s_dw2-1.dll, but I just downloaded that and now it works fine!
Title: Re: Program can't start because sfml-system.dll is missing
Post by: CodeAmeba on July 29, 2018, 11:38:42 am
Sorry I know I'm reviving an old post here. So if we wanted to organize our project folder and place all the dll's into one folder, how do we tell our program to search for it in that folder?
Title: Re: Program can't start because sfml-system.dll is missing
Post by: Laurent on July 29, 2018, 07:05:06 pm
You would have to launch your program from a script that first adds that folder to the search paths of the library loader of the OS. This, of course, will be different for each OS.