
Creation of static libraries on both platforms yields a single binary file containing
the compiled code of the library.The compilation of a shared library on a UNIX system
yields a single file containing the compiled code of the library.The compilation of a
DLL on the Windows platform yields two files, the first file containing linkage informa-
tion (.lib) and the second file containing the compiled code in library form (.dll).
The only significant change required for compiling a library on the Windows plat-
form is that functions to be exported from the library must be explicitly declared using a
pre-compile directive.The following two examples, 6.21 (