what is the difference between static and dynamic library in unix?
how can i use libraries in unix?
what is the difference between static and dynamic library in unix? how can i
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Static libraries are linked into your executable at link time so are fixed at that point.
For dynamic linking, only a reference to the library is linked in at link time. The dynamic library (the actual code) is linked to your executable at load time, when you run your program.
That means you can change the dynamic library at any time and you’ll use the new one the next time you load the program.
See here for more detail.