[SDL] Embed SDL.dll in the .exe

Christophe Cavalaria chris.cavalaria at free.fr
Wed Sep 26 14:19:39 PDT 2007


Sylvain Beucler wrote:

> Hi,
> 
> I'm porting a C game to SDL + some libraries (SDL_mixer, SDL_ttf,
> SDL_gfx).
> 
> I'd like to compile a .exe that includes SDL.dll, SDL_mixer.dll, etc.,
> so that users who want to use the improved SDL version just have to
> drop-in 1 .exe file, and do not need to install all the .dll.

Maybe there's something I'm missing but you do know that MicroSoft doesn't
recommend that applications install or require the user to install .dlls at
all? Basically, all you have to do is to put the dll in the same folder as
the exe.

Unless tou really want to pack everything (code and assets) in a single exe
file of course.



More information about the SDL mailing list