Sdl.dll is missing on my computer - VS 2010

I am trying to compile the SDL program that I wrote, but when I do this, this error appears:

The program does not start because SDL.dll is missing from your computer. Try reinstalling the program to fix this problem.

I have no idea why. I have sdl.dll.

  • I put it in the correct folder: C:\Windows\System32.

  • I have the correct PATHS for all SDL headers, etc.

VS says:

Assembly completed successfully: 1

and THEN an error message appears on the screen.

+5
source share
4 answers

Add it to the debug folder or any other directory where your program is located.

+6
source

SDL.dll , , , PATH.

+4

SDL.dll - 32-, 64- , dll /Windows/SysWOW64/, /Windows/System32/, 64- DLL.

EDIT:
, DLL, System32, , , . , DLL, , .

Instead, copy the DLLs to the same directory as the executable. If you create and execute using Visual Studio, it will look for a DLL in the Project directory, where your source files are likely to be located.

+4
source

Just put the sdl.dll file in the same folder and your problem will be solved. And to answer your problem with PATH, you can specify in visual studio where it will search for executable files during debugging. Perhaps this is incorrectly configured and why VS cannot find SDL.dll?

+2
source

All Articles