[SDL] Embed SDL.dll in the .exe

Sylvain Beucler beuc at beuc.net
Wed Sep 26 00:12:51 PDT 2007


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.


I'm using mingw gcc, but no luck so far with -static (gcc want to
include W32 API functions statically such as _mciSendCommandA at 16 and
obviously can't find them).


Anybody has experience with this? Is that possible?

Thanks,

-- 
Sylvain


More information about the SDL mailing list