c++ - How SDL work without source files? -


in 1.2 version of sdl libraries, cant find .c or .cpp files.

i know can download sdl website, i'm guessing, how sdl work header files, doesn't need source files read definitions of functions?

that's becasue looking @ library (binary) distribution, rather source code. first section here:

http://www.libsdl.org/download-1.2.php

is source code (as tar.gz, rpm , zip file archive), followed various variants of binary distributions.

there lot of .cc (another name c++ source) files in source repository.

in binary distribution, there files need use or develop library, means in former case dll's or .so files can installed on machine, , in second case, header files, .lib or .a files, allow compile code uses library. common practice distribute code binary packages, there little or no need people compile library in first place - assuming of course there aren't many bugs in library, etc.

the applications built use sdl linked libraries in developer package, , uses .dll or .so files in runtime distribution (typically included in developer distribution make "one download instead of two"). same don't (normally) have source code printf or cout in distribution c or c++ runtime library comes compiler.


Comments