Check out your local (static) library!

What is a static library?

Why should I use a library?

How libraries work

Making a library

gcc -options_here -c *.c
ar -rc libname.a *.o
ar -t libname.a
ranlib libname.aorar -s libname.a

How do I use a library?

#include "libname.h"
gcc mainfilename.c -L -l'libname'

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store