[SDL] Question re SDLmain Design Concept

Doug biteme at bitbasher.net
Sun Jun 4 16:09:10 PDT 2006


>Finally, you are aware that statically linking to SDL forces you to relesae
>at least the object files of your program, or the source code.

I would like to clarify this point, just to make sure I'm doing it right...

I rebuilt ONLY SDLmain.lib to be statically linked.  The code in SDLmain.lib 
becomes part of MY application anyways as there is no SDLmain.dll.  By 
building SDLmain.lib statically, it just means that the SDLmain code (which 
will reside in my app) now expects to use the static C runtime library as 
opposed to the dynamically-linked C runtime library.

I have NOT rebuilt SDL.DLL to be statically linked, as it doesn't have to be.  
SDL.DLL is external to my application, and however SDL.DLL is linked doesn't 
really matter - it seems.

So in summary, by changing SDLmain.lib to statically link to the C runtime 
library, I'm not "embedding" any SDL code into my application's codespace that 
wasn't there already.  All it does is say to the SDLmain code, use this 
runtime library instead of that one.






More information about the SDL mailing list