Static Libraries; why use them and how they work.

static libraries
$ gcc -c *.c
$ ar -rc libname.a *.o
$ ar -t libname.a 
$ gcc my_program.c -L. -lnameoflibrary -o function_name

--

--

--

Life has a valuable lesson every day.

Love podcasts or audiobooks? Learn on the go with our new app.

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
Andrew Kalil Ortiz

Andrew Kalil Ortiz

Life has a valuable lesson every day.

More from Medium

QUICK SORT ALGORITHM

Introduction

Power Set

How to Construct Your Static Library?