What is a C static library?

Why use libraries?

How they work?

ranlib and test it with a main.c

How to create them?

gcc -Wall -pedantic -Werror -Wextra -c *.car -rc libholbertonschool.a *.oar -t libholbertonschool.a
ranlib libholbertonschool.a

How to use them?

gcc main.c -L. -lholbertonschool -o alpha

--

--

--

Software engineer in progress

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

Recommended from Medium

Git Theory and Basic Commands

How To Operate AWS Services Using AWS CLI

TERJAMIN!!!

Part 5: Hello World in Programming Languages

Part 11: Free Markets and Speculation

Tutorial Fuzzy Logic Mamdani for Arduino

Tutorial Fuzzy Logic Mamdani for Arduino

Exploiting docker misconfiguration

Announcing Dev Protocol & Chainwhiz Partnership

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
Katherine Soto

Katherine Soto

Software engineer in progress

More from Medium

Angular/Karma unit tests: An error was thrown in afterAll

Perl warnings and the warn function

Should I make class member variables const or constexpr?

4 reasons why you shouldn’t use React.lazy