Carpetfizz
Carpetfizz

Reputation: 9149

"sfml-system.dll" is missing from your computer, error

I've been following the Code Blocks installation tutorial for SFML: http://sfml-dev.org/tutorials/1.6/start-cb.php

I did everything in the tutorial, but when I compile, I get the error saying: "The program can't start because sfml-system.dll is missing from your computer. Try reinstalling the program to fix this problem.

I've been scouring Google for solutions, but nothing has worked so far. Stuff I've tried: -Moving the sfml-system.dll into the same directory as my .exe -Changing the "debug" linker options to static and dynamic.

Any help on this issue will be greatly appreciated, thanks! Carpetfizz

Upvotes: 1

Views: 4304

Answers (1)

user1533320
user1533320

Reputation:

First, your link is for 1.6. The most recent version is 2, which might be better. (in terms of organization/ability etc - more time of improvements added to it in theory).

In the download of SFML I have had, the DLL's are in the SFML/bin folder, or something similar. When I have gotten this error before, it was when I was trying to link dynamically to them and the DLL was not, as you said, in the directory.

Ah. Assuming the directory is not the problem (you could try to put it right next to it just to be sure), looking at the tuturial in question says that you need to also define SFML_DYNAMIC. For some reason I feel like it said if you use gcc this did not make a difference, but that was probably the 2 tuturial (which might have different listed version of gcc), so I would try that. (near the bottom of the page).

Upvotes: 2

Related Questions