How to link to a static library in C? August 13, 2023 by Tarik cc -o yourprog yourprog.c -lstatic or cc -o yourprog yourprog.c libstatic.a