I am having trouble running my game. It works fine when I run it from Visual C++, but when I try to open the .exe, it complains that it can't find SDL.dll.
What should I do in order to play the game?
|
|
IIRC Visual Studio uses a different current directory than the executable. To fix, include SDL.dll in the same directory as your .exe file, along with anything else you may need. A symlink for this is a good fix, although I think there's also a setting in VS to choose the path. |
|||
|
|
|
Find the path to the SDL.dll you're using, let's say it's Possibly, you've added this path in some VC++ directories dialog. So Visual Studio tweaks your Or you've set the working directory for debugging your project to this path: by default all DLLs in the working directory can be loaded. You've got several solutions:
|
||||
|
|
|
Also, consider the possibility of use a installer project offered by Visual Studio. Easy to use and gives you all the necessary stuff to install your games in every MS platform. |
|||
|
|
|
Just make sure Visual Studio is set up to run and debug the executable from the directory it is in, and make sure the SDL.dll is also in that directory. |
|||
|
|