SDL.dll is missing from my computer - VS 2010

后端 未结 4 462
情深已故
情深已故 2021-01-12 16:08

I\'m trying to compile a SDL-program I\'ve written, but when I do, this error shows up:

The program can\'t start because SDL.dll is missing from your

相关标签:
4条回答
  • 2021-01-12 16:46

    IfSDL.dll is 32-bit and you're running a 64-bit system you have to place the dll into /Windows/SysWOW64/ rather than /Windows/System32/, which is used for 64-bit dlls.

    EDIT:
    You probably shouldn't be deploying your DLLs by copying them into the System32 directory, unless they're common libraries that are used by several applications, and even then I would use discretion. For example, an application could update the DLL, which could break other applications that rely on an older version of the library.

    Instead, copy the DLLs into the same directory that the executable is being built in. If you're building and executing with Visual Studio it will look for the DLL in the Project directory, where your source files are probably located.

    0 讨论(0)
  • 2021-01-12 16:49

    Add it into your debug folder or whatever directory your program is currently located at.

    0 讨论(0)
  • 2021-01-12 16:56

    SDL.dll has to either be in the same directory as your application, or in a directory that's in the PATH environment variable.

    0 讨论(0)
  • 2021-01-12 16:59

    Just place your SDL.dll in the same folder and your problem will be solved. And to answer to your problem with the PATH, you can specify in visual studio where he will look for executables while debugging. Maybe this isn't set correctly and that's why VS can't find SDL.dll?

    0 讨论(0)
提交回复
热议问题