STATIC LIBRARIES

How to create them

  1. We must encode the files that contain the functions.

How to use them

  1. The headers that are files with the extension .h, these files contain the prototypes of the functions (the prototype contains the name of the function, the arguments and the return value), all the prototypes must go inside a block #ifndef with the name of the library like this NAMEFILE_H followed by a #define and #endif at the end of the block.
File basic.h
creating the executable file and compiling it

I share an interesting video about the differences between static and dynamic libraries.

--

--

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
Carolina Hernandez Viveros

Carolina Hernandez Viveros

Software development student at Holberton School, lover of science, technology, cooking, music, cats and nature. Also geek