Now that you know the basic terminology,
you can understand how to use a library. To use a library:
Include the
library’s header
file.
Use the
functions and variables in the
library.
Link the
library into the executable
program.
These steps also
apply when the object modules aren’t combined into a library. Including a
header file and linking the object modules are the basic steps for separate
compilation in both C and C++.