shared libraries - How do Linux programs know where the library files are and how to call them? -


when install program using apt-get install, tells me dependency libraries need installed.

for example, nginx requires libgd3 (3d graphics library) installed.

  1. when nginx needs call code in libgd3 how know file and
  2. how go it? assume must load nginx process heap , use kind of function table make calls?

i not sure how process works, thanks.

the libraries in standard path /usr/lib linker searches during linking. dynamic libraries called shared objects in linux having extension .so . check link know more linux libraries: http://www.yolinux.com/tutorials/libraryarchives-staticanddynamic.html


Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

php - Find a regex to take part of Email -