What is the difference between static library and relocatable object file? Or between dynamic library and shared object file.
And if it’s not equal things, what have dynamic library, that allows to link with it, but shared object file doesn’t?
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.
A static library is basically just a collection of object files. It’s typically just an
ararchive of object files. Usingar, you can extract object files from the library, add different object files to it, etc.Generally speaking, the difference between a dynamic library and a shared object file is the target — Windows uses dynamic libraries, Linux uses shared objects. There is a little more difference than that, but not a whole lot.