STATIC LIBRARIES IN C

Image of a physical bookstore.
  • Static libraries are included in the executable, while dynamic libraries are external files, so the size of the application (our executable) is greater in the first case than in the second.
  • Dynamic libraries are independent files that can be invoked from any executable, so that their functionality can be shared by several executables. This means that only one copy of each library file (DLL) is needed in the System. This characteristic constitutes the main reason for its use.
  • -L : Specifies the path to the library. Look in directory for library files.
  • . : Represents the current working directory
  • -l: Libraryname without lib prefix and extension
  • holberton: Is the name of our library. Note that we omitted the “lib” prefix and “.a” extension. The linker attaches these parts back to the name of the library to create a name of a file to look for.
  • -o quote: Says “name the executable file my_program”

Hi I am a financial engineer, and a software development student in Holberton School!

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

Recommended from Medium

Safely Removing Pods From a Kubernetes Node

The Top Five KPIs for Mobile App Businesses

Example of a Mobile App Freeze that we experience and is not measured by teams and their tools

Programing — Easy Ways to Measure the Performance of R Code

20 Programming Books for Coding Your Way to the Top

Configuration of Kubernetes (k8) services with NGINX Ingress controller

Splunk Interview Questions and Answers

Why every Salesforce Org needs a Center of Excellence

The power of Abstraction

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
Valentina Gómez A.

Valentina Gómez A.

Hi I am a financial engineer, and a software development student in Holberton School!

More from Medium

How to create a Dynamic Library in C

Functional Programming vs OOP

Compilation in C

Introduction to C Programming