[SDL] Question re SDLmain Design Concept
Doug
biteme at bitbasher.net
Sat Jun 3 21:48:40 PDT 2006
Firstly, this is not a complaint. Basically, I'm just wondering why
there is an SDLmain.lib that links code into my project rather than a
one time initialization call, something like SDL_OnetimeInit().
I have a desire to build my application using STATIC library linking
(not the dynamic linking that SDL forces). I discovered that if I
rebuild SDLmain using a static library build, and if I say name it
SDLmain-static.lib, then I can build my project using statically linked
libraries.
In the current design, SDLmain.lib forces all applications to be
dynalinked only (unless I rebuild and support another SDLmain.lib that
is statically linked). Again, this is an easy workaround, but I
wondering, am I missing something here in the design concept?
For the sake of completeness, the reason I want my application to
statically link is because I'm using VS 2005. Any application built
with VS 2005 that is a statically linked release build will run on any
computer. An application built with VS 2005 that is dynamically linked
requires the MS redistributable SxS assemblies to also be installed on
all target systems (somewhat of a pain).
Thanks,
Doug.
More information about the SDL
mailing list