How to link to a static library in C?

cc -o yourprog yourprog.c -lstatic

or

cc -o yourprog yourprog.c libstatic.a

Leave a Comment