How to create Static libraries in C

header_file.h
include header file at the top of your file.c
create your object code
command ar to create our library
Index all your object code in the lib
the parameter -t will show all the function object code file
nm command that show indexed files

--

--

--

Software engineer student at HolbertonSchool 👉https://github.com/ThibautBernard 👉https://twitter.com/__ThibautDev

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

Recommended from Medium

How BPMN helps manage information flow in business applications

HTML — Top 3 free online resources used by bootcamps

A C++ Hello World And The Rose Gold Walled Garden Of Doom

Sorting Algorithms: The Easy Way

Cloud computing trends overview

Pick A Apple Game in Python — Console

How to access Spotify without 3rd Party VPNs

Cloud-Native Predictions for 2020

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
Thibaut Bernard

Thibaut Bernard

Software engineer student at HolbertonSchool 👉https://github.com/ThibautBernard 👉https://twitter.com/__ThibautDev

More from Medium

Port Swigger File Upload Vulnerability-Lab 2

TnT | Log4j

TryHackMe: Watcher

Microsoft Exchange Deserialization RCE (CVE-2021–42321)