Introduction to Building Your Own C Libraries

Randall J. Fisher rfisher@ecn.purdue.edu

Disclaimer

Forward

At the moment this is mostly an outline rather than a complete document. This is an introduction and short tutorial on writing and maintaining libraries of C code. It is intended to show the basics of writing modular code, building this code into sets of object files, and combining these into a reusable library.

Table of Contents

  1. Introduction to libraries.
  2. Introduction to objects.
  3. Writing modular code with objects.
  4. Compiling a library of objects.
  5. Using a library in applications code.

Bibliography

Man pages for ld, cc, and as. Info pages for the GNU versions of these.

This page was last modified .