What’s the differences between dynamic libraries and static libraries

  • Much smaller because there is no copy of all functions needed in your executable, only exist in the memory.
  • Faster because the library is linked at run-time and already in memory and no need to copying all the files, functions..
  • No need to recompiled the program to have the changes.
gcc -Wall -pedantic -Werror -Wextra -L. your_program.c -name_lib -o name_executable

--

--

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